bleno - blink(1) example
This example allows you to control a ThingM blink(1) via BLE.
It uses bleno and node-blink1 and requires a blink(1) to be connected via USB.
See main file for entry point.
UUID: 0x180A
Characteristics:
-
- UUID: 0x2a25
- Properties: read
- Description: read the blink(1)'s serial number
-
- UUID: 0x2a27
- Properties: read
- Description: read the blink(1)'s version
UUID: 0x01010101010101010101010101010101
Characteristics:
-
- UUID: 01010101010101010101010101524742
- Properties: write, write without response
- Description: Set the blink(1)'s color
- Data format is: RRGGBB (3 bytes) - single byte for each color
-
- UUID: 01010101010101010166616465524742
- Properties: write, write without response, notify
- Description: Fade the blink(1)'s color and notication when fade is complete
- Data format is: TTTTRRGGBB (5 bytes)
- TTTT - fade time in milliseconds (Little Endian)
- RRGGBB (3 bytes) - single byte for each color
- Data format is: TTTTRRGGBB (5 bytes)