Skip to content

Commit

Permalink
Updated to new version of Bleat.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikael Kindborg committed Mar 10, 2016
1 parent 8a9c313 commit fb3614a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion libs/bleat/VERSION
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Bleat version 2016-03-09 commit 66a9910dd8171824f5d2408f5f5fac60e646f0a6
Bleat version 2016-03-10 commit 39ddad2e94d95055fa32ced50fd3a24058d55f00
https://github.com/thegecko/bleat
5 changes: 3 additions & 2 deletions libs/bleat/adapter.evothings.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,20 @@
adapter.startScan = function(
serviceUUIDs, // String[] serviceUUIDs advertised service UUIDs to restrict results by
foundFn, // Function(Object deviceInfo) function called with each discovered deviceInfo
completeFn, // Function() function called when scanning completed
completeFn, // Function() function called once starting scanning
errorFn // Function(String errorMsg) function called if error occurs
)
{
init(function() {
evothings.ble.stopScan();
evothings.ble.startScan(
function(deviceInfo) {
//if (!this.deviceHandles[deviceID]) this.deviceHandles[deviceID] = deviceInfo;
if (foundFn) { foundFn(createBleatDeviceObject(deviceInfo)); }
},
function(error) {
if (errorFn) { errorFn(error); }
});
if (completeFn) { completeFn(); }
});
};

Expand Down
Loading

0 comments on commit fb3614a

Please sign in to comment.