获得过 0 次赞
回答过的问题获得 0 次赞
分享过的文章/案例获得 0 次赞
评论与回复获得 0 次赞
是过了再连接失败再吃连接一直都会失败
小程序 安卓连接蓝牙总是报10006连接断开//搜索附近蓝牙 wx.onBluetoothDeviceFound(function (res) { console.log(res.devices[0]) if (res.devices[0].name == 'BlueTooth Printer') { console.log('已找到蓝牙设备') console.dir(res.devices[0]) _this.setData({ 'deviceId': res.devices[0].deviceId }) //连接低功耗蓝牙 wx.createBLEConnection({ deviceId: _this.data.deviceId, success: function (res) { console.log('连接蓝牙成功') console.log(res) }, fail: function (err) { console.log('连接蓝牙失败') console.log(err) } }) } }) 在ios下连接蓝牙成功在安卓下总是连接失败错误码10006
2018-09-20