December 2015
Beginner
277 pages
5h 15m
English
Bleno is a library for creating Bluetooth Low Energy peripherals with Node.js. This chapter recreates the Bluetooth enabled lock from Chapter 4 using a Raspberry Pi and bleno. In addition to being a small Linux computer, the Raspberry Pi has GPIO (general-purpose input/output) pins that are used to control hardware, similar to an Arduino.
The Lock Service defined in Table 5-1 is the same Lock Service as Table 4-1 in Chapter 4.
| Characteristic | UUID | Properties |
|---|---|---|
unlock |
D271 |
write |
message |
D272 |
notify |
The Lock Service does two things. The unlock characteristic allows the lock to be opened by writing a secret code to the characteristic. The status message characteristic allows the lock to ...
Read now
Unlock full access