收藏
回答

wx.notifyBLECharacteristicValueChange在ios平台报10008?

API名称:wx.notifyBLECharacteristicValueChange

机型:IPhone XR

微信版本:7.0.11

系统:IOS 13.3.1

微信号:fengyuhe1903731098

时间:2020.3.24 12:35

报错内容:The attribute could not be found

代码片段:https://developers.weixin.qq.com/s/upgYf5mJ7jg6

代码:openNotify:function(){

var that = this

wx.notifyBLECharacteristicValueChange({

deviceId: that.data.deviceId,

serviceId: that.data.serviceId,

characteristicId: that.data.characteristicId,

state: true,

success: function(res) {

console.log(res)

that.setData({motto1:'成功' + res.errMsg})

},

fail:function(res){

console.log(res)

that.setData({ motto1: '失败' + res.errMsg })

}

})

},

最后一次编辑于  03-24
回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容
问题标签