-
Notifications
You must be signed in to change notification settings - Fork 6
Overview
Jack Lund edited this page Oct 15, 2013
·
5 revisions
The API is designed to reflect, as much as possible, the structure of the Bluetooth LE concepts. Thus, you have a device, which contains services, which contain characteristics.
There is a global connect method, which you use to gain access to a device. You pass a Bluetooth destination address (which looks something like BC:6A:29:C3:52:A9, and which you can discover using an external tool such as hcitool), and it passes you the device object in the callback, like so:
device.connect('BC:6A:29:C3:52:A9', function(err, device) {
// Do something with the device
}