@stoprocent/bleno 0.10.0 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -740,6 +740,10 @@ class Gatt extends EventEmitter {
740
740
  data = this._handles[valueHandle].value;
741
741
  }
742
742
 
743
+ if (!data && this._handles[valueHandle].uuid === '2902' && this._connections.get(connection)) {
744
+ data = Buffer.from([0x00, 0x00]);
745
+ }
746
+
743
747
  if (data) {
744
748
  callback(ATT_ECODE_SUCCESS, data);
745
749
  } else if (handleAttribute) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stoprocent/bleno",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "A Node.js module for implementing BLE (Bluetooth Low Energy) peripherals",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",