react-native-mytatva-rn-sdk 1.2.7 → 1.2.8
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.
|
@@ -122,15 +122,11 @@ class CgmTrackyLibModule(reactContext: ReactApplicationContext) :
|
|
|
122
122
|
if (device.isBoundAndConnect) {
|
|
123
123
|
status = DeviceStatus.CONNECTED.id
|
|
124
124
|
} else if (device.isBoundButDisConnect) {
|
|
125
|
-
status = DeviceStatus.
|
|
126
|
-
} else if (
|
|
127
|
-
|
|
128
|
-
DeviceStatus.BLUETOOTH_OFF.id
|
|
129
|
-
} else {
|
|
130
|
-
DeviceStatus.DISCONNECTED.id
|
|
131
|
-
}
|
|
125
|
+
status = DeviceStatus.DISCONNECTED.id
|
|
126
|
+
} else if (!bleStatus) {
|
|
127
|
+
DeviceStatus.BLUETOOTH_OFF.id
|
|
132
128
|
} else if (device.isUnBind) {
|
|
133
|
-
status = DeviceStatus.
|
|
129
|
+
status = DeviceStatus.TRANSMITTER_DISCONNECT.id
|
|
134
130
|
}
|
|
135
131
|
} else {
|
|
136
132
|
status = mStatus
|