V3 Set Multiple Walk Reminder Times
Function Name: setWalkReminderTimeGoal
Flutter Example:
/// Set multiple walk reminder times event number
setWalkRemindTimes(
evtBase: _VBusEvtBase.base_app_set,
evtType: _VBusEvtType.func_v3_set_walk_remind_times),
/// Set multiple walk reminder times
libManager.send(evt: CmdEvtType.setWalkRemindTimes, json: jsonEncode(json));
JSON Fields Sent by the App:
Field Name | Data Type | Field Description |
---|---|---|
version | int | Protocol library version number |
on_off | int | Switch: 1:On 0:Off |
num | int | Number of items, i.e., number of set reminder times |
items | array | Details of walk reminders with hour and minute |
Field Name | Data Type | Field Description |
---|---|---|
hour | int | Walk reminder time: Hour |
min | int | Walk reminder time: Minute |
Example:
{
"version": 0,
"on_off": 1,
"num": 2,
"items": [
{
"hour": 8,
"min": 0
},
{
"hour": 12,
"min": 30
}
]
}
JSON Fields Received by the App:
Field Name | Data Type | Field Description |
---|---|---|
version | int | Protocol version number |
err_code | int | Error code: 0 for success, non-zero for failure |
Example:
{
"version": 0,
"err_code": 0
}