nonin-3230-ble

1.1.0 • Public • Published

nonin-3230-ble

A Node.js lib to abstract the Nonin 3230 BLE pulse oxymeter, using noble-device

Install

npm install nonin-3230-ble --save

Example usage

const Nonin3230 = require('nonin-3230-ble');
 
Nonin3230.discover((pulseOximeter) => {
  pulseOximeter.connectAndSetup((error) => {
    if (error) {
      console.error(error);
    }
    let counter = 0;
    // receive a new measurement every second
    pulseOximeter.on('data', (data) => {
      counter++;
      console.log(data);
      // { counter: int, pulseRate: int, oxygenSaturation: int, status: object }
      if (counter > 15) {
        pulseOximeter.stopMeasurement(() => console.log('stopped'));
      }
 
    });
  });
});

For more examples, see noble-device.

Contributions are welcome.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    6
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    6
  • 1.0.0
    0

Package Sidebar

Install

npm i nonin-3230-ble

Weekly Downloads

6

Version

1.1.0

License

MIT

Last publish

Collaborators

  • andreasdr