Get Set Calorie/Distance/Mid-High Sport Time Goal

Function Table: getSupportGetMainSportGoalV3 【setCalorieGoal,exMain3DistanceGoal(//TODO),setMidHighTimeGoal,getSupportSetGetTimeGoalTypeV2】

Flutter Example:

/// Get Set Calorie/Distance/Mid-High Sport Time Goal event number
getMainSportGoal(
  evtBase: _VBusEvtBase.base_app_get,
  evtType: _VBusEvtType.app_get_main_sport_goal),

/// Get Set Calorie/Distance/Mid-High Sport Time Goal
libManager.send(evt: CmdEvtType.getMainSportGoal, json: jsonEncode(json));

JSON Fields Sent by the App:

Field Name Field Type Description
time_goal_type int 0: Invalid
1: Daily goal
2: Weekly goal
Requires firmware to enable function table getSupportSetGetTimeGoalTypeV2

JSON Fields Received by the App:

Field Name Field Type Description
calorie int Activity calorie goal (in kilocalories)
Requires firmware to enable function table setCalorieGoal
distance int Distance goal (in meters)
calorie_min int Minimum activity calorie value
calorie_max int Maximum activity calorie value
mid_high_time_goal int Mid-high sport time goal (in seconds)
Requires firmware to enable function table setMidHighTimeGoal
walk_goal_time int Goal time(in seconds)
time_goal_type int 0: Invalid
1: Daily goal
2: Weekly goal
Requires firmware to enable function table getSupportSetGetTimeGoalTypeV2

Example:

{
  "calorie" : 4,
  "distance" : 200,
  "calorie_min" : 101,
  "calorie_max" : 500,
  "mid_high_time_goal" : 1,
  "walk_goal_time" : 1,
  "time_goal_type" : 1,
}
Copyright © 2023-2024 IDO. All rights reserved. all right reserved,powered by GitbookModify Date: 2025-04-30 09:32:44

results matching ""

    No results matching ""