wx.createBLEPeripheralServer({ success (res) { console.log('createBLEPeripheralServer success:',res); res.server.addService({ service: { uuid: '0000FE3C-0000-1000-8000-00805F9B34FB', characteristics: [{ uuid: '0000FE3C-0000-1000-8000-00805F9B34FC', value: buffer1 }] }, success (res) { console.log('addService success:',res); }, fail (err) { console.log('addService error:',err) } }); }, fail (err) { console.log('createBLEPeripheralServer error:',err) } })
调用BLEPeripheralServer.addService一直报错https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-peripheral/BLEPeripheralServer.addService.html [图片] 下面是addService的代码: [图片]
2020-03-17