Set Weather City Name

Function: setWeatherCity

Flutter Example:

/// Set weather city name event number
setWeatherCityName(
  evtBase: _VBusEvtBase.base_app_set,
  evtType: _VBusEvtType.app_weatcher_city_name),

/// Set weather city name
libManager.send(evt: CmdEvtType.setWeatherCityName, json: jsonEncode(json));

JSON Fields Sent by the App:

Field Name Field Type Field Description
version int Version number (0)
city_name char [] City name
For firmwares with V3_support_v3_long_city_name, the city name can be up to 74 bytes long. Without the function table enabled, the default size is 16 bytes.

Example:

{
  "version": 0,
  "city_name": "shenzhen"
}

JSON Fields Received by the App:

Field Name Field Type Field Description
version int 0 for failure, 1 for success
err_code int 0 for success, non-zero error code

Example:

{
  "version": 0,
  "err_code": 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 ""