@cpzxrobot/sdk 1.0.53 → 1.0.54
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 +2 -2
- package/package.json +1 -1
- package/pigfarm_gateway.ts +2 -2
package/dist/pigfarm_gateway.js
CHANGED
|
@@ -71,12 +71,12 @@ class PigfarmGateway extends Object {
|
|
|
71
71
|
},
|
|
72
72
|
add: (unit, data) => {
|
|
73
73
|
return this.context.ready.then((axios) => {
|
|
74
|
-
return axios.post(`/api/v2/pigfarm/relay/config/add
|
|
74
|
+
return axios.post(`/api/v2/pigfarm/relay/config/add`, data);
|
|
75
75
|
});
|
|
76
76
|
},
|
|
77
77
|
update: (unit, data) => {
|
|
78
78
|
return this.context.ready.then((axios) => {
|
|
79
|
-
return axios.post(`/api/v2/pigfarm/relay/config/update
|
|
79
|
+
return axios.post(`/api/v2/pigfarm/relay/config/update`, data);
|
|
80
80
|
});
|
|
81
81
|
},
|
|
82
82
|
};
|
package/package.json
CHANGED
package/pigfarm_gateway.ts
CHANGED
|
@@ -81,12 +81,12 @@ export class PigfarmGateway extends Object {
|
|
|
81
81
|
},
|
|
82
82
|
add: (unit: Unit, data: DeviceConfig) => {
|
|
83
83
|
return this.context.ready.then((axios) => {
|
|
84
|
-
return axios.post(`/api/v2/pigfarm/relay/config/add
|
|
84
|
+
return axios.post(`/api/v2/pigfarm/relay/config/add`, data);
|
|
85
85
|
});
|
|
86
86
|
},
|
|
87
87
|
update: (unit: Unit, data: DeviceConfig) => {
|
|
88
88
|
return this.context.ready.then((axios) => {
|
|
89
|
-
return axios.post(`/api/v2/pigfarm/relay/config/update
|
|
89
|
+
return axios.post(`/api/v2/pigfarm/relay/config/update`, data);
|
|
90
90
|
});
|
|
91
91
|
},
|
|
92
92
|
};
|