mirror of
https://github.com/emqx/neuron.git
synced 2026-10-19 05:51:27 +08:00
182 lines
2.4 KiB
JSON
182 lines
2.4 KiB
JSON
{
|
|
"plugins": [
|
|
"mqtt-plugin",
|
|
"modbus-tcp-plugin",
|
|
"opcua-plugin",
|
|
"test-plugin"
|
|
],
|
|
"mqtt-plugin": {
|
|
"params": [
|
|
"host",
|
|
"port"
|
|
],
|
|
"host": {
|
|
"name": "host",
|
|
"description": "mqtt broker host",
|
|
"type": "string",
|
|
"valid": {
|
|
"length": 30
|
|
}
|
|
},
|
|
"port": {
|
|
"name": "port",
|
|
"description": "mqtt broker port",
|
|
"type": "int",
|
|
"default": 1883,
|
|
"valid": {
|
|
"min": 1024,
|
|
"max": 65535
|
|
}
|
|
}
|
|
},
|
|
"opcua-plugin": {
|
|
"tag_type": [
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15
|
|
],
|
|
"params": [
|
|
"host",
|
|
"port"
|
|
],
|
|
"host": {
|
|
"name": "host",
|
|
"description": "opcua server host",
|
|
"type": "string",
|
|
"valid": {
|
|
"length": 30
|
|
}
|
|
},
|
|
"port": {
|
|
"name": "port",
|
|
"description": "opcua server port",
|
|
"type": "int",
|
|
"default": 4840,
|
|
"valid": {
|
|
"min": 1024,
|
|
"max": 65535
|
|
}
|
|
}
|
|
},
|
|
"modbus-tcp-plugin": {
|
|
"tag_type": [
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
14
|
|
],
|
|
"params": [
|
|
"host",
|
|
"port",
|
|
"server_mode"
|
|
],
|
|
"host": {
|
|
"name": "host",
|
|
"description": "local ip in server mode, remote device ip in client mode",
|
|
"type": "string",
|
|
"valid": {
|
|
"length": 30
|
|
}
|
|
},
|
|
"port": {
|
|
"name": "port",
|
|
"description": "local port in server mode, remote device port in client mode",
|
|
"type": "int",
|
|
"default": 502,
|
|
"valid": {
|
|
"min": 1,
|
|
"max": 65535
|
|
}
|
|
},
|
|
"server_mode": {
|
|
"description": "server mode",
|
|
"type": "bool",
|
|
"default": false,
|
|
"valid": {}
|
|
}
|
|
},
|
|
"test-plugin": {
|
|
"tag_type": [
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
14
|
|
],
|
|
"params": [
|
|
"host",
|
|
"port",
|
|
"mode",
|
|
"baud_rate",
|
|
"real_param"
|
|
],
|
|
"host": {
|
|
"name": "host",
|
|
"description": "host",
|
|
"type": "string",
|
|
"default": "127.0.0.1",
|
|
"valid": {
|
|
"length": 30
|
|
}
|
|
},
|
|
"port": {
|
|
"name": "port",
|
|
"description": "port",
|
|
"type": "int",
|
|
"default": 502,
|
|
"valid": {
|
|
"min": 1024,
|
|
"max": 65535
|
|
}
|
|
},
|
|
"mode": {
|
|
"name": "mode",
|
|
"description": "mode",
|
|
"type": "bool",
|
|
"default": false,
|
|
"valid": {}
|
|
},
|
|
"baud_rate": {
|
|
"name": "baud rate",
|
|
"description": "port",
|
|
"type": "int",
|
|
"default": 9600,
|
|
"valid": {
|
|
"value": [
|
|
9600,
|
|
112800
|
|
]
|
|
}
|
|
},
|
|
"real_param": {
|
|
"name": "real param",
|
|
"description": "real",
|
|
"type": "real",
|
|
"default": 11.22,
|
|
"valid": {
|
|
"min": 1.1,
|
|
"max": 20.2
|
|
}
|
|
}
|
|
}
|
|
} |