Skip to content

Commit

Permalink
bt disable fix
Browse files Browse the repository at this point in the history
  • Loading branch information
elijahparker committed Nov 4, 2016
1 parent 5831bb2 commit ef4553d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1356,8 +1356,8 @@ function startScan() {
setTimeout(function() {
if (noble.state == "poweredOn") {
console.log("Starting BLE scan...");
noble.startScanning(['b8e0606762ad41ba9231206ae80ab550'], true, function(err){
console.log("BLE scan started. ", err);
noble.startScanning(['b8e0606762ad41ba9231206ae80ab550'], false, function(err){
console.log("BLE scan started. Error: ", err);
});
}
}, 5000);
Expand All @@ -1375,8 +1375,8 @@ noble.on('stateChange', function(state) {
});

noble.on('discover', function(peripheral) {
console.log('ble', peripheral);
//nmx.connect(peripheral);
//console.log('ble', peripheral);
nmx.connect(peripheral);
});


Expand Down

0 comments on commit ef4553d

Please sign in to comment.