mini_program_gizwits_sdk 3.1.0 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/sdk.ts +4 -4
package/package.json
CHANGED
package/src/sdk.ts
CHANGED
|
@@ -130,10 +130,10 @@ class SDK {
|
|
|
130
130
|
|
|
131
131
|
// 云端获取的设备列表
|
|
132
132
|
private _deviceList: IDevice[] = [];
|
|
133
|
-
private get
|
|
133
|
+
private get deviceList() {
|
|
134
134
|
return this._deviceList;
|
|
135
135
|
}
|
|
136
|
-
private set
|
|
136
|
+
private set deviceList(data: IDevice[]) {
|
|
137
137
|
// TODO 覆盖的时候 需要保留netStatus
|
|
138
138
|
this._deviceList = data;
|
|
139
139
|
|
|
@@ -167,7 +167,7 @@ class SDK {
|
|
|
167
167
|
|
|
168
168
|
private get allDevices() {
|
|
169
169
|
let newDevices = merageBleLocalDevices(
|
|
170
|
-
[...this.
|
|
170
|
+
[...this.deviceList],
|
|
171
171
|
this.bleDevices
|
|
172
172
|
);
|
|
173
173
|
newDevices = merageLanLocalDevices(newDevices, this.udpDevices);
|
|
@@ -738,7 +738,7 @@ class SDK {
|
|
|
738
738
|
// 内部刷新设备列表的方法
|
|
739
739
|
public getBindingList = async () => {
|
|
740
740
|
const data = await getBindingList();
|
|
741
|
-
this.
|
|
741
|
+
this.deviceList = data.data || [];
|
|
742
742
|
};
|
|
743
743
|
|
|
744
744
|
/**
|