Get real-time data
Function table: getRealtimeData
Parameter description:
Field name | Field type | Field description |
---|---|---|
flag | int | 0: Get only 1: Force heart rate monitoring to be turned on 2: Force blood pressure monitoring to be turned on |
Example
Swift
Cmds.getLiveData(flag: 0).send { rs in
if case .success(let obj) = rs {
// Success
// obj is IDOLiveDataModel
}else {
// Failure
}
}
Kotlin
Cmds.getLiveData(flag: 0).send {
if (it.error.code == 0) {
// Success
// it.res is IDOLiveDataModel
}else {
// Failure
}
}