Skip to content

dpjanes/homestar-ble

Repository files navigation

homestar-ble

IOTDB Bridge for Bluetooth Low Energy Devices

About

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.

Installation

Then:

$ npm install homestar-ble

Use

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_*.

Models

BeanLight

The Bean* classes work with LighBlue Bean.

This Model sets RGB color.

e.g.

{
    "color": "#FF0000"
}

BeanTemperature

This Model reads the temperature in Celsius.

e.g.

{
    "temperature": 20
}

BeanXYZ

This Model read the XYZ Orientation.

e.g.

{
    "x": 10,
    "y": -250,
    "z": 48
}

BLEHeartRate

This model reads the standard BLE Heart Rate Profile.

e.g.

{
    "rate": 65,
    "connected": true
}

TIKeyFob

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.

About

IOTDB / HomeStar Controller for Bluetooth Low Energy Devices

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published