收藏
回答

微信小程序蓝牙writeBLECharacteristicValue 1004错误问题

https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-ble/wx.writeBLECharacteristicValue.html

官方给的demo有点问题,这是解决方案:

https://blog.csdn.net/zxc147716565/article/details/107973860

    wx.writeBLECharacteristicValue({
      deviceId: this._deviceId,
      serviceId: this._serviceId,
      characteristicId: this._characteristicId,
      value: buffer,
    })
回答关注问题邀请回答
收藏
登录 后发表内容
问题标签