Set Weather Switch
Function: setSetV3Weather
Flutter Example:
/// Set weather switch event number
setWeatherSwitch(
evtBase: _VBusEvtBase.base_app_set,
evtType: _VBusEvtType.app_set_weather_switch),
/// Set weather switch
libManager.send(evt: CmdEvtType.setWeatherSwitch, json: jsonEncode(json));
JSON Fields Sent by the App:
Field Name | Field Type | Field Description |
---|---|---|
on_off | int | 0: Off 1: On |
Example:
{
"on_off": 1
}
JSON Fields Received by the App:
Field Name | Field Type | Field Description |
---|---|---|
status_code | int | 0 for success, non-zero for failure |
Example:
{
"status_code": 0
}