noble-device
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -0,1 +1,5 @@ | ||
## Version 1.0.1 | ||
* add ``connectedAndSetUp`` property | ||
## Version 1.0 | ||
@@ -2,0 +6,0 @@ |
@@ -13,2 +13,3 @@ var events = require('events'); | ||
this.uuid = peripheral.uuid; | ||
this.connectedAndSetUp = false; | ||
@@ -21,2 +22,3 @@ this._peripheral.on('disconnect', this.onDisconnect.bind(this)); | ||
NobleDevice.prototype.onDisconnect = function() { | ||
this.connectedAndSetUp = false; | ||
this.emit('disconnect'); | ||
@@ -71,3 +73,6 @@ }; | ||
this.discoverServicesAndCharacteristics(callback); | ||
this.discoverServicesAndCharacteristics(function() { | ||
this.connectedAndSetUp = true; | ||
callback(); | ||
}.bind(this)); | ||
}.bind(this)); | ||
@@ -74,0 +79,0 @@ }; |
{ | ||
"name": "noble-device", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A node.js lib to abstract BLE (Bluetooth Low Energy) peripherals, uses noble", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20500
340