- 当前 Bug 的表现(可附上截图)
- 预期表现
- 复现路径
- 提供一个最简复现 Demo
notifyBLECharacteristicValueChange: function (){
var that = this;
wx.notifyBLECharacteristicValueChange({
state: true, // 启用 notify 功能
deviceId: that.data.deviceId,
serviceId: that.data.serviceId,
characteristicId: that.data.notifyCharacteristicId,
success: function (res) {
console.log("notify启动成功");
setTimeout(function (){
// ble.monitor_ble(that.data.deviceId,that.data.serviceId,that.data.writeCharacteristicId);
ble.refresh_ble(that.data.connected,that.data.deviceId, that.data.serviceId, that.data.writeCharacteristicId);
}//这个是我做的一个发送刷新命令的函数
,2000
);
setTimeout(function () {
wx.hideToast();
}, 2000);
},
fail: function (res) {
wx.