Setting the Name of a Sports City (V3)
Flutter Example:
/// V3 Setting the Name of a Sports City event number
setLongCityNameV3(
evtBase: _VBusEvtBase.base_app_set,
evtType: _VBusEvtType.func_v3_set_long_city_name),
/// V3 Setting the Name of a Sports City
libManager.send(evt: CmdEvtType.setLongCityNameV3, json: jsonEncode(json));
JSON field sent by the app:
Field Name | Field Type | Field Description |
---|---|---|
version | int | Library version number |
name | char [] | City name Maximum 74 bytes |
Example:
{
"version": 0,
"name": "shenzhen"
}
JSON field received by the app:
Field Name | Field Type | Field Description |
---|---|---|
version | int | Library version number |
err_code | int | Error code: 0 for success, non-zero for error |
Example:
{
"version": 0,
"err_code": 0
}