通过小程序蓝牙广播,在添加服务的时候按以下的格式添加服务,安卓端可以正常,iOS 端提示:errCode:10000, errno:1500101, errMsg:addBLEPeripheralService:fail One or more parameters were invalid
const service = {
uuid: data.UUID_SERVICE,
characteristics: [{
uuid: data.UUID_CHARACTERISTIC_READ,
properties: {
read: false,
write: false,
notify: true,
indicate: false
},
permission: {
readable: true,
writeable: true,
readEncryptionRequired:false,
writeEncryptionRequired:false
},
value: util.hexToArray("2902").buffer,
descriptors: [{
uuid: data.UUID_CHARACTERISTIC_READ,
permission: {
write: true,
read: true
},
value: util.hexToArray("2902").buffer
}]
安卓正常是这样的
}]
}
一样的问题,请问楼主解决了吗
你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)