Skip to content

Commit

Permalink
first version
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Luyten authored and Stefan Luyten committed Jul 16, 2016
1 parent 6870e2f commit 3a5dc57
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions readmotiondetector.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var async = require('async');
// PUBNUB
var pubnub = require("pubnub")({
ssl : true, // <- enable TLS Tunneling over TCP
publish_key : "pub-c-34f43669-27d6-4263-a29c-0d18c07ca0e2",
publish_key : "xxx",
subscribe_key : "sub-c-c5948442-3e27-11e6-8b3b-02ee2ddab7fe"
});

Expand All @@ -19,7 +19,6 @@ var nobleState;

go(0);


function go(i){

if(i) {
Expand Down Expand Up @@ -67,7 +66,8 @@ noble.on('discover', function(peripheral) {
peripheral.once('disconnect', function() {
console.log("Disconnected");
//noble.stopScanning();
go(1);
//go(1); // This was to be able to restart the BL scanning process but is not funcitoning properly yet.

});
//peripheral.discoverAllServicesAndCharacteristics(function(error, services, characteristics){
var serviceUUIDs = ["180d"];
Expand Down

0 comments on commit 3a5dc57

Please sign in to comment.