@autorunify/capacitor-nrfmesh 0.0.7 → 0.0.9

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.
@@ -39,6 +39,10 @@ class BleManager {
39
39
  when (state) {
40
40
  BluetoothAdapter.STATE_ON -> {
41
41
  ble.notify.notifyListeners(eventName, JSObject().apply {
42
+ synchronized(ble.devices){
43
+ ble.devices.clear()
44
+ }
45
+
42
46
  ble.device = null
43
47
  ble.isConnected.postValue(false)
44
48
  put("action", "enabled")
@@ -67,6 +71,10 @@ class BleManager {
67
71
  }
68
72
 
69
73
  BluetoothDevice.ACTION_ACL_DISCONNECTED -> {
74
+ synchronized(ble.devices){
75
+ ble.devices.clear()
76
+ }
77
+
70
78
  ble.device = null
71
79
  ble.isConnected.postValue(false)
72
80
  ble.notify.notifyListeners(eventName, JSObject().apply {
@@ -17,7 +17,7 @@ import java.nio.ByteOrder.LITTLE_ENDIAN
17
17
 
18
18
  class SensorGetWrapper : SensorGet {
19
19
  constructor(appkey: ApplicationKey, propertyId: Short?)
20
- : super(appkey, DeviceProperty.UNKNOWN) {
20
+ : super(appkey, null) {
21
21
  if (propertyId != null) {
22
22
  this.mParameters = ByteBuffer
23
23
  .allocate(2)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autorunify/capacitor-nrfmesh",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "nrf mesh plugin",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",