Important JavaScript in the gateway project

In this section, we will quickly take a look at the important classes responsible for communicating with Bluetooth devices using the noble library. The BLE adapter handles all major BLE connections and traffic. This means that most classes call this if Bluetooth communication is required. You will also find references to the noble API and the customized Bluetooth SIG implementation of our_modules in this class. The main imports in this class are as follows:

var keystore = require('./keyStore');var debug = require('debug')('bleAdapter');//var error = debug('gateway:ble:error');//var log = debug('gateway:ble:log');var util = require('util');var db = require('./dataModel');var conts = require('./constants'); ...

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.