设备连接添加超时

This commit is contained in:
范鹏 2024-09-07 17:28:39 +08:00
parent a556de9f6e
commit 32c7aa1a7b

View File

@ -618,6 +618,7 @@ export const useBluetoothStore = defineStore('ble', {
}
uni.createBLEConnection({
deviceId: that.currentLockInfo.deviceId,
timeout: 10000,
success(res) {
console.log('连接成功', res)
// 获取设备服务