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;
pulseOximeter.on('data', (data) => {
counter++;
console.log(data);
if (counter > 15) {
pulseOximeter.stopMeasurement(() => console.log('stopped'));
}
});
});
});
For more examples, see noble-device.
Contributions are welcome.
Dependencies (1)
Dev Dependencies (0)
Package Sidebar
Install
Weekly Downloads