Set Fitness Guidance Switch
Menu: setSetFitnessGuidance
Flutter Example:
/// Fitness Guidance Event
setFitnessGuidance(
evtBase: _VBusEvtBase.base_app_set,
evtType: _VBusEvtType.app_set_fitness_guidance),
/// Fitness Guidance
libManager.send(evt: CmdEvtType.setFitnessGuidance, json: jsonEncode(json));
JSON Fields Sent by the App:
Field Name | Field Type | Field Description |
---|---|---|
mode | int | Fitness guidance mode switch 1: On 0: Off |
start_hour | int | Start hour |
start_minute | int | Start minute |
end_hour | int | End hour |
end_minute | int | End minute |
notify_flag | int | Notification type 0: Invalid 1: Allow 2: Silent 3: Disable |
go_mode | int | Reminders to move switch 1: On 0: Off |
repeat | int | Repeat bit0: Invalid bit1-7: Monday to Sunday,value 0 not repeat, value 1 repeat |
target_steps | int | Target steps |
Example:
{
"mode": 1,
"start_hour": 9,
"start_minute": 0,
"end_hour": 18,
"end_minute": 0,
"notify_flag": 1,
"go_mode": 0,
"repeat": 127,
"target_steps": 2000
}
JSON Fields Received by the App:
Field Name | Field Type | Field Description |
---|---|---|
is_success | int | 0: Failed 1: Success |
Example:
{
"is_success": 0
}