TI Sensor Tag Node.JS Library (ES6 Class based)
This Library helps to connect, subscribe to data for various sensor services offered by TI SensorTags (http://www.ti.com/tools-software/sensortag.html) over BLE (Bluetooth Low Energy).
Depeneds On
- noble-device-pg
- noble
Quick Example
Example file here for CC1350 (Similar to CC2650) is given.
Usage
- Use SensorTagFactory to get an instance of SensorTag (e.g. CC1350, CC2650, etc)
SensorTagFactory;
- Use wrapper methods of SensorTag.js to instantiate the SensorTag.
cc1350;
- Chain services to enable them with specific reading period and an optional callback for (converted) sensor data.
cc1350 // Default printing for light sensor ;
Advanced
- To add one or more callbacks, get particular service and call addServiceDataListner.
const luxService = cc1350;luxService;