V3 Device Notifies App of Exercise Process Switching

function table:setSupportSportPlan 【setWatchCapacitySizeDisplay】

JSON Fields Sent by the App:

Field Name Field Type Field Description
operate int Operation
1: Start exercise
2: Pause exercise
3: Resume exercise
4: End exercise
5: Switch action
type int Plan type
1: 3km running plan
2: 5km running plan
3: 10km running plan
4: Half marathon training (Phase 2)
5: Marathon training (Phase 2)
action_type int Action type
1: Fast walk
2: Jog
3: Moderate run
4: Fast run
5: End course exercise (waiting for user's free exercise) (This field is effective when operate is 5)
err_code int 0: Success, non-zero: Failure

Example:

{
  "operate": 1,
  "type": 1,
  "action_type": 1,
  "err_code": 0
}

JSON Fields Received by the App:

Field Name Field Type Field Description
operate int 1: Start exercise
2: Pause exercise
3: Resume exercise
4: End exercise
5: Switch action
type int Plan type
1: 3km running plan
2: 5km running plan
3: 10km running plan
4: Half marathon training (Phase 2)
5: Marathon training (Phase 2)
action_type int Action type
1: Fast walk
2: Jog
3: Moderate run
4: Fast run
5: End course exercise (waiting for user's free exercise); 6: Free exercise after course ends (This field is effective when operate is 5)
year int Year of the training course date (training day's date)
month int Month of the training course date (training day's date)
day int Day of the training course date (training day's date)
time int Action target time in seconds
low_heart int Lower value of heart rate range
high_heart int Upper value of heart rate range
cur_day int Start/pause/resume/end time, determined by the operate value
Time: day
hour int Time: hour
minute int Time: minute
second int Time: second

Example:

{
  "operate": 1,
  "type": 1,
  "action_type": 1,
  "year": 2022,
  "month": 12,
  "day": 26,
  "time": 200,
  "low_heart": 80,
  "high_heart": 110,
  "cur_day": 1,
  "hour": 0,
  "minute": 0,
  "second": 0
}
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 ""