@cpzxrobot/sdk 1.0.72 → 1.0.73

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.
@@ -190,6 +190,11 @@ export class FeedTowerGateway extends DeviceFilter<FeedTower> {
190
190
  update: (ft: FeedTowerV2) => {
191
191
  return this.context.axios.post("/api/v2/device/feedTower/update", ft);
192
192
  },
193
+ adzero: (ft: FeedTowerV2) => {
194
+ return this.context.axios.post(`/api/v2/device/feedTower/adzero`,{
195
+ id: ft.id
196
+ });
197
+ }
193
198
  };
194
199
  }
195
200
  }
@@ -128,6 +128,11 @@ class FeedTowerGateway extends device_filter_1.DeviceFilter {
128
128
  update: (ft) => {
129
129
  return this.context.axios.post("/api/v2/device/feedTower/update", ft);
130
130
  },
131
+ adzero: (ft) => {
132
+ return this.context.axios.post(`/api/v2/device/feedTower/adzero`, {
133
+ id: ft.id
134
+ });
135
+ }
131
136
  };
132
137
  }
133
138
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.0.72",
3
+ "version": "1.0.73",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -119,7 +119,6 @@ export class PigfarmGateway extends Object {
119
119
  return axios.get(`/api/v2/pigfarm/weightMeter/list/${factory.id}`);
120
120
  });
121
121
  },
122
-
123
122
  add: (data: WeightMeter) => {
124
123
  return this.context.ready.then((axios) => {
125
124
  return axios.post(`/api/v2/pigfarm/weightMeter/add`, data);
package/readme.md CHANGED
@@ -78,6 +78,7 @@ baseURL: "/"
78
78
  | cpzxrobot().device.data | 获得设备的数据,该接口用于获取单个设备的详细数据 |
79
79
  | cpzxrobot().device.feedTower.list | 获得料塔设备的列表 |
80
80
  | cpzxrobot().device.feedTower.v2.list | 获得料塔设备的列表(新版),暂不支持v1版本的data等附加参数,只支持按工厂获取 |
81
+ | cpzxrobot().device.feedTower.v2.adzero | 将某一个特定料塔设置清零 |
81
82
  | cpzxrobot().device.xxx | 获得设备的相关信息 |
82
83
  | cpzxrobot().device.v2.add | 新增设备(仅限v2设备) |
83
84
  | cpzxrobot().device.v2.update | 更新设备(仅限v2设备) |