|
@@ -660,13 +660,14 @@ Page({
|
|
|
} else if (item.state === "offline") {
|
|
|
console.log("去连接蓝牙")
|
|
|
} else {
|
|
|
- console.log("去添加蓝牙")
|
|
|
- that.addConnectBlueDevice({
|
|
|
- deviceId: item.deviceId,
|
|
|
- name: item.devName,
|
|
|
- state: item.state,
|
|
|
- clientType: item.ProdModel ?? item.clientType,
|
|
|
- mac: item.mac,
|
|
|
+ console.log("gasdfadsfqwwerqweqrqr=====00==" + JSON.stringify(item));
|
|
|
+ ///item
|
|
|
+ // {"connectType":1,"deviceId":"E4:9F:80:09:40:EC","name":"E4:9F:80:09:40:EC","state":"online","ProdModel":"MW-SR1(4G_WIFI)","devName":"猫王音响x阿基米德 SR1 妙播收音机"}
|
|
|
+ item.name = item.devName;
|
|
|
+ BtHelper.getInstance().connect(item, function (data) {
|
|
|
+ if (data) {
|
|
|
+ that.addConnectBlueDevice(item);
|
|
|
+ }
|
|
|
});
|
|
|
}
|
|
|
},
|