采集数据时新增一个parent_code字段,同时device_code更改为必填

This commit is contained in:
Yu Sun
2022-08-20 14:18:13 +08:00
parent c33b6b9cd8
commit a948c11eb9
4 changed files with 30 additions and 12 deletions

View File

@@ -32,19 +32,21 @@
{
"action": "set_node_data",
"param": {
"working_subclass": <string>,
"working_subclass": <string>, // 可选
"data": [
{
"code": <string>,
// value的类型需与type对应
"value": <string | int | float | bool>,
"device_code": [string],
"batch": [string]
"device_code": [string], // 必需字段
"parent_code": [string], // 可选字段对应MES中的code
"batch": [string] // 可选字段
},
{
"code": <string>,
"value": <string | int | float | bool>,
"device_code": [string],
"parent_code": [string],
"batch": [string]
},
...