Chapter 5. Bleno Lock

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.

Table 5-1. Lock Service D270
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 ...

Get Make: Bluetooth now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.