V3APP Notifies Device to Switch Exercise Process
Flutter Example:
/// Exercise plan operation event number in the app
exchangeAppPlan(
evtBase: _VBusEvtBase.base_app_set,
evtType: _VBusEvtType.func_v3_app_to_ble_sport_cutover),
/// Exercise plan operation in the app
libManager.send(evt: CmdEvtType.exchangeAppPlan, json: jsonEncode(json));
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: Running Plan 3km 2: Running Plan 5km 3: Running Plan 10km 4: Half Marathon Training (Phase 2) 5: Marathon Training (Phase 2) 6: Post-Run Stretching 7: 6-minute Easy Run 8: 10-minute Easy Run 9: 15-minute Easy Run 10: Walk-Run Combination (Beginner) 11: Walk-Run Combination (Advanced) 12: Walk-Run Combination (Intensive) |
training_offset | int | Training course date offset starting from zero |
hour | int | Start, Pause, Resume, End time determined by operate Time: Hour |
minute | int | Time: Minute |
second | int | Time: Second |
Example:
{
"operate":1,
"type":1,
"training_offset":0,
"hour":15,
"minute":22,
"second": 0
}
JSON fields received by the app:
Field Name | Field Type | Field Description |
---|---|---|
err_code | int | 0: Success, other values indicate failure |
operate | int | Operation 1: Start Exercise 2: Pause Exercise 3: Resume Exercise 4: End Exercise 5: Switch Action |
type | int | Plan type 1: Running Plan 3km 2: Running Plan 5km 3: Running Plan 10km 4: Half Marathon Training (Phase 2) 5: Marathon Training (Phase 2) |
action_type | int | This field is effective when operate is 5 Action type 1: Fast Walking 2: Slow Jogging 3: Medium Speed Running 4: Fast Running 5: End Course Exercise (also waits for user's Free Exercise) |
Example:
{
"err_code": 0,
"operate": 1,
"type": 1,
"action_type": 0
}