mirror of
https://github.com/emqx/neuron.git
synced 2026-10-17 04:40:42 +08:00
189 lines
2.9 KiB
JSON
189 lines
2.9 KiB
JSON
{
|
|
"plugins": [
|
|
"mqtt-plugin",
|
|
"modbus-tcp-plugin",
|
|
"opcua-plugin"
|
|
],
|
|
"mqtt-plugin": {
|
|
"req-topic": {
|
|
"name": "req-topic",
|
|
"description": "Neuron request topic",
|
|
"type": "string",
|
|
"default": "",
|
|
"valid": {
|
|
"length": 100
|
|
}
|
|
},
|
|
"res-topic": {
|
|
"name": "res-topic",
|
|
"description": "Neuron response topic",
|
|
"type": "string",
|
|
"default": "",
|
|
"valid": {
|
|
"length": 100
|
|
}
|
|
},
|
|
"ssl": {
|
|
"name": "ssl",
|
|
"description": "Enable SSL connection",
|
|
"type": "bool",
|
|
"default": false,
|
|
"valid": {}
|
|
},
|
|
"host": {
|
|
"name": "host",
|
|
"description": "MQTT broker host",
|
|
"type": "string",
|
|
"default": "broker.emqx.io",
|
|
"valid": {
|
|
"length": 30
|
|
}
|
|
},
|
|
"port": {
|
|
"name": "port",
|
|
"description": "MQTT broker port",
|
|
"type": "int",
|
|
"default": 1883,
|
|
"valid": {
|
|
"min": 1024,
|
|
"max": 65535
|
|
}
|
|
},
|
|
"username": {
|
|
"name": "username",
|
|
"description": "User name",
|
|
"type": "string",
|
|
"default": "",
|
|
"valid": {
|
|
"length": 30
|
|
}
|
|
},
|
|
"password": {
|
|
"name": "password",
|
|
"description": "Password",
|
|
"type": "string",
|
|
"default": "",
|
|
"valid": {
|
|
"length": 30
|
|
}
|
|
},
|
|
"ca-path": {
|
|
"name": "ca-path",
|
|
"description": "",
|
|
"type": "string",
|
|
"default": "",
|
|
"valid": {
|
|
"length": 100
|
|
}
|
|
},
|
|
"ca-file": {
|
|
"name": "ca-file",
|
|
"description": "",
|
|
"type": "string",
|
|
"default": "",
|
|
"valid": {
|
|
"length": 100
|
|
}
|
|
}
|
|
},
|
|
"opcua-plugin": {
|
|
"tag_type": [
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15
|
|
],
|
|
"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
|
|
}
|
|
},
|
|
"username": {
|
|
"name": "username",
|
|
"description": "User name",
|
|
"type": "string",
|
|
"default": "",
|
|
"valid": {
|
|
"length": 30
|
|
}
|
|
},
|
|
"password": {
|
|
"name": "password",
|
|
"description": "Password",
|
|
"type": "string",
|
|
"default": "",
|
|
"valid": {
|
|
"length": 30
|
|
}
|
|
}
|
|
},
|
|
"modbus-tcp-plugin": {
|
|
"tag_type": [
|
|
4,
|
|
5,
|
|
8,
|
|
9,
|
|
11,
|
|
14
|
|
],
|
|
"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
|
|
}
|
|
},
|
|
"connection_mode": {
|
|
"name": "connection mode",
|
|
"description": "neuron as the client, or as the server",
|
|
"type": "map",
|
|
"default": 0,
|
|
"valid": {
|
|
"map": [
|
|
{
|
|
"key": "client",
|
|
"value": 0
|
|
},
|
|
{
|
|
"key": "server",
|
|
"value": 1
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
} |