Alarm
Sets alarm
The watch supports three alarm clocks, and the alarm clock information can be set according to the alarm clock serial number. Single alarm clock supports setting date.
_blePlugin.sendAlarm(AlarmClockBean info);
Parameter Description :
AlarmClockBean:
value | value type | value description |
---|---|---|
id | int | AlarmId |
hour | int | hour (24-hour format) |
minute | int | minute |
repeatMode | int | from RepeatMode |
enable | bool | enable |
AlarmId:
firstClock | secondClock | thirdClock |
---|---|---|
First alarm clock | Second alarm clock | Third alarm clock |
RepeatMode:
single | sunday | monday | tuesday | wednesday | thursday | friday | saturday | everyday |
---|---|---|---|---|---|---|---|---|
Single, only valid today. | Repeat on Sunday | Repeat on Monday | Repeat on Tuesday | Repeat on Wednesday | Repeat on Thursday | Repeat on Friday | Repeat on Saturday | Everyday |
Gets all alarm
Gets all alarm clock information saved by the watch.
List<AlarmClockBean> listInfo = await _blePlugin.queryAllAlarm;