@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 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
 
@@ -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() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.1.95",
3
+ "version": "1.1.96",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {