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
}
}
Copyright © 2023-2024 IDO. All rights reserved. all right reserved,powered by Gitbook修改日期: 2024-11-01 11:39:31

results matching ""

    No results matching ""