@cpzxrobot/sdk 1.1.95 → 1.1.96
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/device_gateway.ts +8 -0
- package/dist/device_gateway.js +6 -0
- package/package.json +1 -1
package/device_gateway.ts
CHANGED
|
@@ -62,6 +62,14 @@ export class DeviceGateway extends Object {
|
|
|
62
62
|
return res.data;
|
|
63
63
|
});
|
|
64
64
|
},
|
|
65
|
+
|
|
66
|
+
preview: async (type:String, sn:any) => {
|
|
67
|
+
let axios = await this.context.ready;
|
|
68
|
+
|
|
69
|
+
return axios.get(`/api/v2/device/iotValue/${type}/${sn}`).then((res) => {
|
|
70
|
+
return res.data;
|
|
71
|
+
});
|
|
72
|
+
},
|
|
65
73
|
};
|
|
66
74
|
}
|
|
67
75
|
|
package/dist/device_gateway.js
CHANGED
|
@@ -36,6 +36,12 @@ class DeviceGateway extends Object {
|
|
|
36
36
|
return res.data;
|
|
37
37
|
});
|
|
38
38
|
},
|
|
39
|
+
preview: async (type, sn) => {
|
|
40
|
+
let axios = await this.context.ready;
|
|
41
|
+
return axios.get(`/api/v2/device/iotValue/${type}/${sn}`).then((res) => {
|
|
42
|
+
return res.data;
|
|
43
|
+
});
|
|
44
|
+
},
|
|
39
45
|
};
|
|
40
46
|
}
|
|
41
47
|
get thresholdConfig() {
|