Set Sport Mode Sorting
Menu: setSportModeSort
Flutter Example:
/// Set Sport Mode Sorting Event Code
setSportModeSort(
evtBase: _VBusEvtBase.base_app_set,
evtType: _VBusEvtType.app_set_sport_mode_sort),
/// Set Sport Mode Sorting
libManager.send(evt: CmdEvtType.setSportModeSort, json: jsonEncode(json));
JSON Fields Sent by the App:
Field Name | Field Type | Field Description |
---|---|---|
items | Array | Array of sport mode sorting details with index and type |
Field Name | Field Type | Field Description |
---|---|---|
index | int | Sorting index (starting from 1, 0 is invalid) |
type | int | Sport mode type 1 for walking 2 for running ... and so on. |
Example:
{
"items": [
{
"index": 1,
"type": 0
},
{
"index": 2,
"type": 2
},
{
"index": 3,
"type": 4
},
{
"index": 4,
"type": 8
},
{
"index": 5,
"type": 85
},
{
"index": 6,
"type": 78
},
{
"index": 7,
"type": 45
},
{
"index": 8,
"type": 65
}
]
}