react-native-mytatva-rn-sdk 1.2.28 → 1.2.29
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.
|
@@ -144,8 +144,10 @@ class CgmTrackyLibModule(reactContext: ReactApplicationContext) :
|
|
|
144
144
|
|
|
145
145
|
val pocDevice =
|
|
146
146
|
RepositoryDevice.getInstance(BApplication.getContext()).latestDeviceIoThread
|
|
147
|
-
|
|
147
|
+
|
|
148
148
|
if (pocDevice != null) {
|
|
149
|
+
Log.d("pocDevice logsss", pocDevice.toString())
|
|
150
|
+
|
|
149
151
|
if (pocDevice.isUnBind) {
|
|
150
152
|
postEventDataToAPI(
|
|
151
153
|
pocDevice,
|
|
@@ -154,6 +156,8 @@ class CgmTrackyLibModule(reactContext: ReactApplicationContext) :
|
|
|
154
156
|
)
|
|
155
157
|
}
|
|
156
158
|
} else {
|
|
159
|
+
Log.d("pocDevice logsss", "Data null")
|
|
160
|
+
|
|
157
161
|
postEventDataToAPI(
|
|
158
162
|
pocDevice,
|
|
159
163
|
DeviceStatus.TRANSMITTER_DISCONNECT.id,
|
|
@@ -186,11 +190,6 @@ class CgmTrackyLibModule(reactContext: ReactApplicationContext) :
|
|
|
186
190
|
val bleStatus = bluetoothAdapter?.isEnabled == true
|
|
187
191
|
var status = ""
|
|
188
192
|
|
|
189
|
-
Log.d("ble Status", bleStatus.toString())
|
|
190
|
-
Log.d("device.isBoundAndConnect Status", device?.isBoundAndConnect.toString())
|
|
191
|
-
Log.d("device.isUnBind Status", device?.isUnBind.toString())
|
|
192
|
-
Log.d("device.isBoundButDisConnect Status", device?.isBoundButDisConnect.toString())
|
|
193
|
-
|
|
194
193
|
status = if (mStatus.isEmpty()) {
|
|
195
194
|
when {
|
|
196
195
|
device?.isBoundAndConnect == true -> DeviceStatus.CONNECTED.id
|