Set scientific sleep switch
Function table: setScientificSleepSwitch
Example
Swift
let param = IDOScientificSleepSwitchParamModel(...)
Cmds.setScientificSleepSwitch(param).send { rs in
if case .success(let obj) = rs {
// Success
// obj is IDOCmdSetRes responseModel
}else {
// failed
}
}
Kotlin
val param = IDOScientificSleepSwitchParamModel(...)
Cmds.setScientificSleepSwitch(param).send {
if (it.isOK) {
// Success
}else {
// Failure
}
}