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

results matching ""

    No results matching ""