Set Walk Reminder
Function: setWalkReminder [setWalkReminderAddNotify, setDrinkWaterReminder(待补充)]
Flutter Example:
/// Set walk reminder event number
setWalkRemind(
evtBase: _VBusEvtBase.base_app_set,
evtType: _VBusEvtType.app_set_walk_reminder),
/// Set walk reminder
libManager.send(evt: CmdEvtType.setWalkRemind, json: jsonEncode(json));
JSON Fields Sent by the App:
Field Name | Field Type | Field Description |
---|---|---|
on_off | int | Switch 0: Off 1: On |
goal_step | int | Goal steps Reserved |
start_hour | int | Start time (hour) |
start_minute | int | Start time (minute) |
end_hour | int | End time (hour) |
end_minute | int | End time (minute) |
repeat | int | Repeat bit0 is invalid bit1-bit7 is Monday to Sunday respectively value 0 not repeat, value 1 repeat |
goal_time | int | Goal time Reserved |
notify_flag | int | Notification type 0: Invalid 1: Allow notifications 2: Silent notifications 3: Disable notifications Requires firmware support for setWalkReminderAddNotify |
do_not_disturb_on_off | int | Do not disturb (no reminder) switch 0: Off 1: On Requires firmware support for v2SupportSetGetNoReminderOnWalkReminder |
no_disturb_start_hour | int | Start time of do not disturb (hour) Requires firmware support for v2SupportSetGetNoReminderOnWalkReminder |
no_disturb_start_minute | int | Start time of do not disturb (minute) Requires firmware support for v2SupportSetGetNoReminderOnWalkReminder |
no_disturb_end_hour | int | End time of do not disturb (hour) Requires firmware support for v2SupportSetGetNoReminderOnWalkReminder |
no_disturb_end_minute | int | End time of do not disturb (minute) Requires firmware support for v2SupportSetGetNoReminderOnWalkReminder |
Example:
{
"on_off": 1,
"goal_step": 2000,
"start_hour": 14,
"start_minute": 0,
"end_hour": 20,
"end_minute": 0,
"repeat": 127,
"goal_time": 60,
"notify_flag": 1,
"do_not_disturb_on_off": 0,
"no_disturb_start_hour": 0,
"no_disturb_start_minute": 0,
"no_disturb_end_hour": 0,
"no_disturb_end_minute": 0
}