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.

/nonin-3230-ble/

    Package Sidebar

    Install

    npm i nonin-3230-ble

    Weekly Downloads

    6

    Version

    1.1.0

    License

    MIT

    Last publish

    Collaborators

    • andreasdr