fix: BLE reconnect stuck on binding state

- onRetry clears bind_result listener before disconnect
- Add 1s delay after closeBluetoothAdapter before re-scanning
- Fix binding state text from '点击连接' to '正在配对...'
这个提交包含在:
Guoguo
2026-05-12 06:25:53 -07:00
父节点 8e306819ff
当前提交 1fa6434451
修改 2 个文件,包含 9 行新增2 行删除
+8 -1
查看文件
@@ -92,8 +92,15 @@ Page({
},
onRetry: function () {
var self = this
if (self._onBindResult) {
ble.off('bind_result', self._onBindResult)
self._onBindResult = null
}
ble.disconnect()
this.startBleConnect()
setTimeout(function () {
self.startBleConnect()
}, 1000)
},
onMockConnect: function () {