650完成,670完成部分
This commit is contained in:
@ -433,6 +433,7 @@ class BleHelper {
|
||||
|
||||
uni.onBLECharacteristicValueChange((receive) => {
|
||||
//订阅消息
|
||||
console.log("收到订阅消息",receive);
|
||||
let f=this.data.LinkedList.find((v) => {
|
||||
return v.deviceId == receive.deviceId;
|
||||
})
|
||||
@ -505,10 +506,8 @@ class BleHelper {
|
||||
this.cfg.receivDataCallback.forEach((rec) => {
|
||||
|
||||
if (rec.callback) {
|
||||
|
||||
}
|
||||
rec.callback(recData, f, path);
|
||||
|
||||
rec.callback(recData, f, path);
|
||||
}
|
||||
})
|
||||
}
|
||||
} else {
|
||||
@ -1142,7 +1141,7 @@ class BleHelper {
|
||||
})); //没有找到指定设备
|
||||
return;
|
||||
}
|
||||
console.log("device=", device);
|
||||
// console.log("device=", device);
|
||||
uni.writeBLECharacteristicValue({
|
||||
deviceId: device.deviceId,
|
||||
serviceId: device.writeServiceId,
|
||||
|
Reference in New Issue
Block a user