cylon-ble
Version:
Cylon module for Bluetooth Low Energy (LE) peripherals
25 lines (19 loc) • 441 B
JavaScript
;
var Cylon = require("cylon");
Cylon.robot({
connections: {
bluetooth: { adaptor: "central", uuid: "207377654321", module: "cylon-ble" }
},
devices: {
generic: { driver: "ble-generic-access" }
},
work: function(my) {
my.generic.getDeviceName(function(err, data) {
if (err) {
console.log("error: ", err);
return;
}
console.log("data: ", data);
});
}
}).start();