Get V3 Alarm
Function table
__IDO_FUNCTABLE__.funcTable29Model.v3SyncAlarm
V3 Alarm Model description
- IDOSetAlarmInfoBluetoothModel
Parameter | Description | Notes |
---|---|---|
isOpen | Alarm is on | bool |
isSync | Whether to sync to the bracelet | No assignment is required, the alarm will be automatically assigned after the alarm is set successfully |
isDelete | delete or not | Defult YES |
type | Type | 0: wake up, 1: sleep, 2: exercise, 3: take medicine, 4: date, 5: party, 6: meeting, 7: other
8: eat, 9: brush teeth, 10: rest 11: lesson 12: bath 13: study 14: play 42: custom name |
hour | Minute | int |
minute | second | int |
repeat | repeat set | [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday] |
tsnoozeDuration | snooze duration | int |
alarmId | Alarm ID | int |
setTimeStamp | The timestamp of the alarm modification | No assignment is required, it will be automatically assigned after the alarm is set successfully |
repeatTime | Repeat alarm times Repeat alarm times | v3 alarm clock only works |
shockOnOff | Vibration switch | v3 alarm clock only works |
delayMinute | Delay minutes | v3 alarm clock only works |
alarmName | Alarm name | The length is limited to 23 bytes, and the v3 alarm clock is valid |
- IDOSetExtensionAlarmInfoBluetoothModel
Parameter | Description | Notes |
---|---|---|
alarmVersion | Alarm version number | int |
alarmCount | Number of alarm clocks | int |
items | Alarm clock collection | Initialize the bracelet alarm when syncing the configuration |
Command code
Objc:
[IDOFoundationCommand getV3AlarmsInfoCommand:^(int errorCode, IDOSetExtensionAlarmInfoBluetoothModel * _Nullable data) {
if (errorCode == 0) {
//get success
}else if (errorCode == 6) {
//device not supported
}else {
//get failed
}
}];
Swift:
IDOFoundationCommand.getV3AlarmsInfoCommand{ (errorCode, model) in
if errorCode == 0 {
//get success
}else if errorCode == 6 {
//device not supported
}else {
//get failed.
}
};