@cpzxrobot/sdk 1.0.91 → 1.0.92
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/dist/pigfarm_gateway.js +5 -0
- package/package.json +1 -1
- package/pigfarm_gateway.ts +5 -0
- package/readme.md +2 -1
package/dist/pigfarm_gateway.js
CHANGED
|
@@ -105,6 +105,11 @@ class PigfarmGateway extends Object {
|
|
|
105
105
|
return axios.get(`/api/v2/pigfarm/weightMeter/iccidInfo/${data.id}`);
|
|
106
106
|
});
|
|
107
107
|
},
|
|
108
|
+
restart: (data) => {
|
|
109
|
+
return this.context.ready.then((axios) => {
|
|
110
|
+
return axios.post(`/api/v2/pigfarm/weightMeter/restart?id=${data.id}`);
|
|
111
|
+
});
|
|
112
|
+
},
|
|
108
113
|
config: () => {
|
|
109
114
|
return {
|
|
110
115
|
//获取仪表下的所有通道配置,这里获得的都是已绑定的
|
package/package.json
CHANGED
package/pigfarm_gateway.ts
CHANGED
|
@@ -129,6 +129,11 @@ export class PigfarmGateway extends Object {
|
|
|
129
129
|
return axios.get(`/api/v2/pigfarm/weightMeter/iccidInfo/${data.id}`);
|
|
130
130
|
});
|
|
131
131
|
},
|
|
132
|
+
restart: (data: WeightMeter) => {
|
|
133
|
+
return this.context.ready.then((axios) => {
|
|
134
|
+
return axios.post(`/api/v2/pigfarm/weightMeter/restart?id=${data.id}`);
|
|
135
|
+
});
|
|
136
|
+
},
|
|
132
137
|
config: () => {
|
|
133
138
|
return {
|
|
134
139
|
//获取仪表下的所有通道配置,这里获得的都是已绑定的
|
package/readme.md
CHANGED
|
@@ -102,7 +102,8 @@ baseURL: "/"
|
|
|
102
102
|
| cpzxrobot().pigfarm.weightMeter.sensor.list | 获取称重计的传感器列表 |
|
|
103
103
|
| cpzxrobot().pigfarm.weightMeter.sensor.add | 添加称重计的传感器信息 |
|
|
104
104
|
| cpzxrobot().pigfarm.weightMeter.sensor.update | 更新称重计的传感器信息 |
|
|
105
|
-
| cpzxrobot().pigfarm.weightMeter.iccid | 获取称重计的iccid信息
|
|
105
|
+
| cpzxrobot().pigfarm.weightMeter.iccid | 获取称重计的iccid信息 |
|
|
106
|
+
| cpzxrobot().pigfarm.weightMeter.restart | 重启称重计 |
|
|
106
107
|
| cpzxrobot().device.feedTower.stat | 获得料塔设备的料耗,饲料重量 |
|
|
107
108
|
| cpzxrobot().device.feedTower.setAlarmParam | 设置料塔设备的报警参数 |
|
|
108
109
|
| cpzxrobot().device.feedTower.updateAlarmParam | 更新料塔设备的报警参数 |
|