修复670灯光问题

This commit is contained in:
liub
2025-12-03 10:20:11 +08:00
parent cd6d529523
commit e2d07e984f
6 changed files with 38 additions and 17 deletions

View File

@ -145,7 +145,7 @@ class BleHelper {
let item = this.data.LinkedList[i];
if (deviceId && item.device) {
if (item.device.id == deviceId) {
console.log("找到要删除的设备", item);
console.error("找到要删除的设备", item);
this.data.LinkedList.splice(i, 1);
this.disconnectDevice(item.deviceId);
flag = true;
@ -154,7 +154,7 @@ class BleHelper {
} else {
if (bleId && item.deviceId == bleId) {
console.log("找到要删除的设备1,", item)
console.error("找到要删除的设备1,", item)
this.data.LinkedList.splice(i, 1);
this.disconnectDevice(item.deviceId);
flag = true;
@ -638,7 +638,7 @@ class BleHelper {
}, 0);
});
console.log("111111111")
uni.onBluetoothDeviceFound((res) => {
//console.log("发现新设备:" + JSON.stringify(res,'name'));
let arr = [];
@ -816,7 +816,7 @@ class BleHelper {
str: str,
hexs: hexs
};
// console.log("监听到特征值:" + JSON.stringify(recData));
console.log("监听到特征值:" + JSON.stringify(recData));
if (this.cfg.receivDataCallback) {
if (this.cfg.receivDataCallback.length > 0) {