wx.notifyBLECharacteristicValueChange在ios平台报10008?
发布于 6 年前 作者 nliao 8635 次浏览 来自 官方Issues

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 })

}

})

},

1 回复

你好,麻烦具体描述问题流程,提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html,另外,麻烦再复现一次,在手机微信那里上传下日志: 我->设置->帮助与反馈右上角有个上报日志的入口,麻烦提供一下微信号,时间点

回到顶部