wx.createBLEConnection返回fail,但是设备却连上了
发布于 7 年前 作者 lhou 15048 次浏览 来自 官方Issues

问题描述:

HUAWEI手机,型号BLA-AL00,用小程序同步蓝牙设备中的数据

1. 依次连接蓝牙设备A、B,A设备(关机状态)连接失败后,导致连接B设备过程中createBLEConnection返回失败,但是B设备却连上了(B设备的蓝牙连接指示灯亮了),操作流程如下

a). openBluetoothAdapter -> createBLEConnection with A deviceId and timeout -> fail callback -> closeBLEConnection with A deviceId -> closeBluetoothAdapter

b). openBluetoothAdapter -> createBLEConnection with B deviceId and timeout -> fail callback -> closeBLEConnection with B deviceId -> closeBluetoothAdapter

2. 只连接蓝牙设备B,连接正常

1 回复

麻烦在手机微信那里上传下日志: 我->设置->帮助与反馈右上角有个上报日志的入口,麻烦提供一下微信号,复现的具体时间点

回到顶部