A Node.js library for Angel Sensor (M1).
Install dependencies and run index.js
npm install
node index.js
- Connects to an Angel Sensor
- Reads Device Information (Manufacturer Name, Model Number, Serial Number, Firmware Revision)
- Reads Temperature Type, Battery Level, Body Sensor Location
- Activates notifications for Heart Rate Measurement, Temperature Measurement, Battery Level, (Optical Waveform), (Acceleration Waveform), (Blood Oxygen Saturation Measurement)
- Notifies when one of those Characteristics sends a value
Optical Waveform and Acceleration Waveform would produce a lot of outcome, so they are commented out. You can uncomment them to see the raw data. (characteristics/opticalWaveform.js
(line 29) or characteristics/accelerationWaveform.js
(line 23))
Blood Oxygen Saturation Measurement does not yet output anything
- Acceleration Waveform
- Battery Level
- Blood Oxygen Saturation Measurement
- Body Sensor Location
- Firmware Revision
- Heart Rate Measurement
- Manufacturer Name String
- Model Number String
- Optical Waveform
- Protocol Revision
- Serial Number String
- Temperature Measurement
- Temperature Type
- Get heart rate out of Optical and Acceleration Waveform
- Implement Activity Monitoring Service
- Implement Alarm Clock Service
- Implement Health Journal Service