Set Phone Volume for Device
Function: setSetPhoneVoice
Flutter Example:
/// Set phone volume for device event number
setBleVoice(
evtBase: _VBusEvtBase.base_app_set,
evtType: _VBusEvtType.app_set_ble_voice),
/// Set phone volume for device
libManager.send(evt: CmdEvtType.setBleVoice, json: jsonEncode(json));
JSON fields sent by the App:
Field Name | Field Type | Field Description |
---|---|---|
total_volume | int | Total volume |
current_volume | int | Current volume |
Example:
{
"total_volume": 100,
"current_volume": 85
}
JSON fields received by the App:
Field Name | Field Type | Field Description |
---|---|---|
state | int | 0 for failure, 1 for success |
Example:
{
"state": 1
}