V3APP issued running plan (exercise plan)
Function menu: setSupportSportPlan
Flutter example:
/// App issued running plan (exercise plan) event number
setSendRunPlan(
evtBase: _VBusEvtBase.base_app_set,
evtType: _VBusEvtType.func_v3_send_run_plan),
/// App issued running plan (exercise plan)
libManager.send(evt: CmdEvtType.setSendRunPlan, json: jsonEncode(json));
Json fields issued by the App:
Field Name | Field Type | Field Description |
---|---|---|
verison | int | Protocol library version number |
operate | int | Operation 1: Start plan 2: Plan data sent 3: End plan 4: Query running plan |
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) |
year | int | Plan start time year |
month | int | Plan start time month |
day | int | Plan start time day |
hour | int | Plan start time hour |
min | int | Plan start time minute |
sec | int | Plan start time second |
day_num | int | Number of plan days Applicable when operate is 2 |
items | Array | Plan details:type & num & item |
Field Name | Field Type | Field Description |
---|---|---|
type | int | Training type 186: Rest plan 187: Outdoor running plan 188: Indoor running plan 189: Indoor fitness plan |
num | int | Number of actions Note: The number of actions is zero when resting, and non-zero for other actions |
item | Array | Details of action: type & time & height_heart & low_heart |
Field Name | Field Type | Field Description |
---|---|---|
type | int | Action type 1: Fast walk 2: Jog 3: Moderate run 4: Fast run |
time | int | Target time Unit: seconds |
height_heart | int | Low heart rate range |
low_heart | int | High heart rate range |
Example:
{
"verison": 0,
"operate": 1,
"type": 1,
"year": 2022,
"month": 12,
"day": 26,
"hour": 17,
"min": 36,
"sec": 0,
"day_num": 1,
"items":[
{
"type": 186,
"num": 2,
"item": [
{
"type": 1,
"time": 200,
"height_heart": 110,
"low_heart": 80
},
{
"type": 1,
"time": 500,
"height_heart": 110,
"low_heart": 80
}
]
}
],
"item": []
}
Json fields received by the App:
Field Name | Field Type | Field Description |
---|---|---|
err_code | int | 00: Success, 01: Failed, 02: Another running plan is already enabled |
version | int | Protocol library version number |
operate | int | Operation: 1: Start plan 2: Plan data sent 3: End plan 4: Query running plan |
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) |
year | int | Plan implementation start time year |
month | int | Plan implementation start time month |
day | int | Plan implementation start time day |
hour | int | Plan implementation start time hour |
min | int | Plan implementation start time minute |
sec | int | Plan implementation start time second |
Example:
{
"err_code": 0,
"version": 0,
"operate": 1,
"type": 1,
"year": 2022,
"month": 12,
"day": 26,
"hour": 17,
"min": 36,
"sec": 0
}