Set Music On/Off
Menu: setBleControlMusic [supportV2SetShowMusicInfoSwitch]
Flutter Example:
/// Set Music On/Off Event
setMusicOnOff(
evtBase: _VBusEvtBase.base_app_set,
evtType: _VBusEvtType.app_set_muisc_onoff),
/// Set Music On/Off
libManager.send(evt: CmdEvtType.setMusicOnOff, json: jsonEncode(json));
JSON Fields Sent by the App:
Field Name | Field Type | Field Description |
---|---|---|
on_off | int | 1: On 0: Off |
show_info_status | int | Show song information switch 1: On 0: Off Requires firmware support for menu: supportV2SetShowMusicInfoSwitch |
Example:
{
"on_off": 1,
"show_info_status": 0
}
JSON Fields Received by the App:
Field Name | Field Type | Field Description |
---|---|---|
status_code | int | 0: Success, non-zero: Failure |
Example:
{
"status_code": 0
}