时间:2019-05-04 来源:小程序工厂
鲲***:
wx.notifyBLECharacteristicValueChange({
state: true,
deviceId: deviceId,
serviceId: serviceId,
characteristicId: characteristicId,
success: function (res) {
console.log("订阅成功 =" + characteristicId)
wx.onBLECharacteristicValueChange(function (res) {
console.log("特征改变" + res)
})
},
complete: function (res) {
console.log("订阅结果 =" + res.errMsg)
}
})
订阅成功 后,数据写人, onBLECharacteristicValueChange iOS回调执行, 安卓回调不执行
鲲***:
微信小程序更新好, 安卓订阅特征, 订阅失败, 错误码 10008
万念俱灰的求援(代码变乱码)##微信小程序开发教程