Query BT Pairing Switch, Connection, A2DP Connection, HFP Connection Status (Only Supported on Devices with BT Bluetooth)
Menu: getBleAndBtVersion
Flutter Example:
/// Query BT pairing switch, connection, A2DP connection, HFP connection status (Only Supported on devices with BT Bluetooth) event number
getBtNotice(
evtBase: _VBusEvtBase.base_app_get,
evtType: _VBusEvtType.app_get_set_bt_notice),
/// Query BT pairing switch, connection, A2DP connection, HFP connection status (Only Supported on devices with BT Bluetooth)
libManager.send(evt: CmdEvtType.getBtNotice, json: jsonEncode(json));
JSON Fields Received by the App:
Field Name | Field Type | Field Description |
---|---|---|
bt_connect_states | int | 1: BT connection status on 0: BT connection status off -1: Invalid |
bt_pair_states | int | 1: BT pairing status on 0: BT pairing status off -1: Invalid |
a2dp_connect_states | int | 1: A2DP connection status on 0: A2DP connection status off -1: Invalid |
hfp_connect_states | int | 1: HFP connection status on 0: HFP connection status off -1: Invalid |
Example:
{
"bt_connect_states":1,
"bt_pair_states":1,
"a2dp_connect_states":1,
"hfp_connect_states":0
}