O'Reilly logo

Make: Bluetooth by Sandeep Mistry, Don Coleman, Alasdair Allan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required