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(para m).send {
 if (it.error.code == 0) {
 // Success
 // it.res is IDOCmdSetResponseModel
 }else {
 // Failure
 }
}
Copyright © 2023-2024 IDO. All rights reserved. all right reserved,powered by Gitbook修改日期: 2024-04-22 17:20:23

results matching ""

    No results matching ""