初始化蓝牙,扫描蓝牙设备,蓝牙和手机建立链接,获取serviceid和characteristicid
写入value 0 进入dfu模式时, 此时小程序写入API返回错误,及错误详细信息(已确认比对serviceID 和characteristicid,完全正确)
wx.writeBLECharacteristicValue({
deviceId: that.deviceid,
serviceId: "1D14D6EE-FD63-4FA1-BFA4-8F47B42119F0",
characteristicId: "F7BF3564-FB6D-4E53-88A4-5E37E0326063",
value: valueBuffer,
success: res => {
console.log('启用DFU成功', res);
},
fail: err => {
console.log('deviceid:'+that.deviceid)
console.log(err);
}
});
你好,为了保持社区良好的氛围,请勿重复发帖,此贴先隐藏,感谢配合。