Set Exercise Goal
Menu: [supportWalkGoalSteps (to be filled by SDK), v2SupportSetStepDataType (to be filled by SDK)]
Flutter Example:
/// Set exercise goal event
setSportGoal(
evtBase: _VBusEvtBase.base_app_set,
evtType: _VBusEvtType.app_set_sport_goal),
/// Set exercise goal
libManager.send(evt: CmdEvtType.setSportGoal, json: jsonEncode(json));
JSON Fields Sent by the App:
Field Name | Field Type | Field Description |
---|---|---|
sport_step | int | Number of steps for the exercise goal |
walk_goal_steps | int | Walk goal steps per hour setting |
target_type | int | Target type setting 0: Invalid 1: Daily Goal 2: Weekly Goal Requires support from the menu |
Example:
{
"sport_step": 2000,
"walk_goal_steps": 15,
"target_type": 2
}
JSON Fields Received by the App:
Field Name | Field Type | Field Description |
---|---|---|
status_code | int | 0 for success, non-zero for failure |
Example:
{
"status_code": 0
}