ble-glucose
Advanced tools
Comparing version 0.3.0 to 0.4.0
10
index.js
@@ -110,4 +110,9 @@ /* | ||
await this.glucoseMeasurement.startNotifications(); | ||
this.glucoseMeasurementContext = await this.glucoseService.getCharacteristic('glucose_measurement_context'); | ||
await this.glucoseMeasurementContext.startNotifications(); | ||
try { | ||
this.glucoseMeasurementContext = await this.glucoseService.getCharacteristic('glucose_measurement_context'); | ||
await this.glucoseMeasurementContext.startNotifications(); | ||
this.glucoseMeasurementContext.addEventListener('characteristicvaluechanged', bluetoothLE.handleContextNotifications); | ||
} catch (err) { | ||
console.log(err); | ||
} | ||
this.racp = await this.glucoseService.getCharacteristic('record_access_control_point'); | ||
@@ -117,3 +122,2 @@ await this.racp.startNotifications(); | ||
this.glucoseMeasurementContext.addEventListener('characteristicvaluechanged', bluetoothLE.handleContextNotifications); | ||
this.glucoseMeasurement.addEventListener('characteristicvaluechanged', this.handleNotifications); | ||
@@ -120,0 +124,0 @@ this.racp.addEventListener('characteristicvaluechanged', this.handleRACP); |
{ | ||
"name": "ble-glucose", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "Reads blood glucose values from Bluetooth LE enabled meters", | ||
@@ -35,6 +35,6 @@ "main": "index.js", | ||
"bows": "1.7.2", | ||
"core-js": "2.6.10", | ||
"core-js": "2.6.12", | ||
"lodash": "4.17.21", | ||
"sundial": "1.6.0" | ||
"sundial": "1.7.0" | ||
} | ||
} |
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
14569
6
348
+ Addedcore-js@2.6.12(transitive)
+ Addedmoment-timezone@0.5.37(transitive)
+ Addedsundial@1.7.0(transitive)
- Removedcore-js@2.6.10(transitive)
- Removedmoment-timezone@0.4.1(transitive)
- Removedsundial@1.6.0(transitive)
Updatedcore-js@2.6.12
Updatedsundial@1.7.0