IOTDB Bridge for Bluetooth Low Energy Devices
This talks BLE by sending buffers with characteristic UUIDs. See the various bindings for examples. You are much better using the Models (below) though obviously if you want to support new BLE devices you'll have some familarity with this.
Then:
$ npm install homestar-ble
Change Cortado LightBle Bean to Red
const iotdb = require('iotdb')
iotdb.use("homestar-ble")
const things = iotdb.connect("BeanLight")
things.set(":color', "#FF0000")
See the samples for details how to add to your project,
particularly ones called iotdb_*
.
The Bean* classes work with LighBlue Bean.
This Model sets RGB color.
e.g.
{
"color": "#FF0000"
}
This Model reads the temperature in Celsius.
e.g.
{
"temperature": 20
}
This Model read the XYZ Orientation.
e.g.
{
"x": 10,
"y": -250,
"z": 48
}
This model reads the standard BLE Heart Rate Profile.
e.g.
{
"rate": 65,
"connected": true
}
This Model reads the the buttons on a TIKeyFob.
This actually will create 2 Things for each Key Fob - one for the left button and one for the right buton.