uniapp微信小程序调用writeBLECharacteristicValue 报错10008?
let commandData = new Uint8Array([0xFF, 0xFF, 0x05, 0x01, 0xFA]).buffer;
console.log('发送是数据内容', commandData);
uni.writeBLECharacteristicValue({
deviceId: _this.connected.deviceId,
serviceId: _this.connected.serviceId,
characteristicId: _this.connected.writeCharacteristic,
value: commandData,
success: (res) => {
console.log('发送数据成功', res);
},
fail: (err) => {
console.log('发送数据失败', err);
}
})
具体代码如上,其他前置操作均操作完成,对应uuid均为api返回。 但是调用一直提示10008错误,具体报错信息如下[图片] 调试设备: iPhone