|
|
|
|
@ -29,7 +29,7 @@ import com.cloud.diplomaticquarterapp.smart_ring_2301.BleManager
|
|
|
|
|
import com.cloud.diplomaticquarterapp.utils.Constant
|
|
|
|
|
import com.cloud.diplomaticquarterapp.utils.UiChannel
|
|
|
|
|
import com.google.gson.Gson
|
|
|
|
|
import com.jeremyliao.liveeventbus.LiveEventBus
|
|
|
|
|
import com.jeremyliao.liveeventbus.LiveEventBus;
|
|
|
|
|
import com.jstyle.blesdk2301.Util.BleSDK
|
|
|
|
|
import com.jstyle.blesdk2301.Util.BleSDK.EnterActivityMode
|
|
|
|
|
import com.jstyle.blesdk2301.Util.BleSDK.GetDynamicHRWithMode
|
|
|
|
|
@ -615,6 +615,7 @@ class BleBridge(private var flutterEngine: FlutterEngine, private var mainActivi
|
|
|
|
|
|
|
|
|
|
// ECG TRACKER
|
|
|
|
|
if (deviceName.contains("DuoEK", ignoreCase = true)) {
|
|
|
|
|
|
|
|
|
|
LiveEventBus.get<InterfaceEvent>(InterfaceEvent.ER2.EventEr2Info).observe(this.mainActivity) {
|
|
|
|
|
val data = it.data as DeviceInfo
|
|
|
|
|
println("DuoEK INFO DATA: $data")
|
|
|
|
|
@ -724,7 +725,9 @@ class BleBridge(private var flutterEngine: FlutterEngine, private var mainActivi
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// OXYMETER
|
|
|
|
|
if (deviceName == "POD-1_SN8187" || deviceName == "PC-60FW") { //DONE
|
|
|
|
|
if (deviceName == "POD-1_SN8187" || deviceName == "PC-60FW" || deviceName == "PC-60F_SN972236") { //DONE
|
|
|
|
|
|
|
|
|
|
//observeSticky
|
|
|
|
|
LiveEventBus.get<InterfaceEvent>(InterfaceEvent.PC60Fw.EventPC60FwRtParam).observe(this.mainActivity) {
|
|
|
|
|
val data = it.data as RtParam
|
|
|
|
|
println("POD-1_SN8187: $data")
|
|
|
|
|
|