wx.writeBLECharacteristicValue({
deviceId: that.data.connectedDeviceId,
serviceId: app.BLEInformation.writeServiceId,
characteristicId: app.BLEInformation.writeCharaterId,
value: buffer,
success: function (res) {
console.log('发送成功')
},
fail:function(res){
console.log(res)
}
})
参考https://developers.weixin.qq.com/community/develop/doc/000468ee2dc8189b6399b6eda56c00?_at=1614680915973