Important libraries and their usage

In the gateway project, a majority of the communication is done by a Node.js library named noble. This library is responsible for providing any Bluetooth-related tasks (other than pairing, as it is done with the Bluetooth SIG's implementation). The main reference for this can be found in the README.md file:

var noble = require('noble');

If you read further along in the our_modules/README.md file, you can find various Bluetooth calls associated with the noble variable. A short list of noble commands defined in the our_modules/README.md file is as follows:

javascriptnoble.startScanning(); // any service UUID, no duplicatesnoble.startScanning([], true); // any service UUID, allow duplicatesvar serviceUUIDs ...

Get Building Bluetooth Low Energy Systems 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.