app gets the alarm of ble
Function table: syncV3SyncAlarm
Parameter description:
Field name | Field type | Field description |
---|---|---|
flag | int | Get alarm flag 0: Get all alarms 1: Receive notification and get the alarm modified by the bracelet |
Example
Swift
Cmds.getAlarm(flag: 1).send { rs in
if case .success(let obj) = rs {
// Success
// obj is IDOAlarmModel
}else {
// Failure
}
}
Kotlin
Cmds.getAlarm(flag: 1).send {
if (it.error.code == 0) {
// Success
// it.res is IDOAlarmModel
}else {
// Failure
}
}