Set Body Power Switch
Function: syncV3BodyPower
Flutter Example:
/// Set body power switch event number
setBodyPowerTurn(
evtBase: _VBusEvtBase.base_app_set,
evtType: _VBusEvtType.app_set_body_power_on_off),
/// Set body power switch
libManager.send(evt: CmdEvtType.setBodyPowerTurn, 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": 170
}
JSON fields received by the App:
Field Name | Field Type | Field Description |
---|---|---|
err_code | int | 0 for success, non-zero for error code |
Example:
{
"err_code": 0
}