查询获取bt配对开关、连接、a2dp连接、hfp连接状态(仅支持带bt蓝牙的设备)

功能表:getBleAndBtVersion

Flutter示例:

/// 查询bt配对开关、连接、a2dp连接、hfp连接状态(仅支持带bt蓝牙的设备)事件号
getBtNotice(
  evtBase: _VBusEvtBase.base_app_get,
  evtType: _VBusEvtType.app_get_set_bt_notice),

/// 查询bt配对开关、连接、a2dp连接、hfp连接状态(仅支持带bt蓝牙的设备)
libManager.send(evt: CmdEvtType.getBtNotice, json: jsonEncode(json));

App收到的json字段

字段名 字段类型 字段说明
bt_connect_states int 1:bt连接状态开
0:bt连接状态关
-1:无效
bt_pair_states int 1:bt配对状态开
0:bt配对状态关
-1:无效
a2dp_connect_states int 1:a2dp连接状态开
0:a2dp连接状态关
-1:无效
hfp_connect_states int 1:hfp连接状态开
0:hfp连接状态关
-1:无效

示例:

{
    "bt_connect_states":1,
    "bt_pair_states":1,
    "a2dp_connect_states":1,
    "hfp_connect_states":0
}
Copyright © 2023-2024 IDO. All rights reserved. all right reserved,powered by Gitbook修订时间: 2026-04-07 16:03:39

results matching ""

    No results matching ""