85 lines
1.6 KiB
JSON
85 lines
1.6 KiB
JSON
|
|
{
|
||
|
|
"mqtt": [
|
||
|
|
{
|
||
|
|
"name": "mqtt_1",
|
||
|
|
"serveraddr": "localhost",
|
||
|
|
"serverport": 1883,
|
||
|
|
"sendprotocol": "json",
|
||
|
|
"recvprotocol": "json",
|
||
|
|
"subtopic": {
|
||
|
|
"subtopic": ["VL/System/State", "IR/System/State", "Servo/System/State"]
|
||
|
|
},
|
||
|
|
"pubtopic": {
|
||
|
|
"pubtopic": ["Track/System/State"]
|
||
|
|
},
|
||
|
|
"routertable": {
|
||
|
|
"routertable": ["com_1", "tcp_1"]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "mqtt_2",
|
||
|
|
"serveraddr": "localhost",
|
||
|
|
"serverport": 1883,
|
||
|
|
"sendprotocol": "hex",
|
||
|
|
"recvprotocol": "hex",
|
||
|
|
"subtopic": {
|
||
|
|
"subtopic": ["VL/System/State", "IR/System/State", "Servo/System/State"]
|
||
|
|
},
|
||
|
|
"pubtopic": {
|
||
|
|
"pubtopic": ["Track/System/State"]
|
||
|
|
},
|
||
|
|
"routertable": {
|
||
|
|
"routertable": ["com_1", "tcp_1"]
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"com": [
|
||
|
|
{
|
||
|
|
"name": "com_1",
|
||
|
|
"portname": "com1",
|
||
|
|
"baudrate": 9600,
|
||
|
|
"databits": 8,
|
||
|
|
"parity": 0,
|
||
|
|
"stopbits": 1,
|
||
|
|
"flowcontrol": 0,
|
||
|
|
"sendprotocol": "hex",
|
||
|
|
"recvprotocol": "hex",
|
||
|
|
"routertable": {
|
||
|
|
"routertable": ["mqtt_1"]
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"tcp": [
|
||
|
|
{
|
||
|
|
"name": "tcp_1",
|
||
|
|
"localaddr": "localhost",
|
||
|
|
"localport": 45533,
|
||
|
|
"remoteaddr": "192.168.1.15",
|
||
|
|
"remoteport": 45534,
|
||
|
|
"keeplive": 2,
|
||
|
|
"times": 10,
|
||
|
|
"sendprotocol": "hex",
|
||
|
|
"recvprotocol": "hex",
|
||
|
|
"routertable": {
|
||
|
|
"routertable": ["mqtt_1"]
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"udp": [
|
||
|
|
{
|
||
|
|
"name": "udp_1",
|
||
|
|
"localaddr": "localhost",
|
||
|
|
"localport": 45533,
|
||
|
|
"remoteaddr": "192.168.1.15",
|
||
|
|
"remoteport": 45534,
|
||
|
|
"keeplive": 2,
|
||
|
|
"times": 10,
|
||
|
|
"sendprotocol": "hex",
|
||
|
|
"recvprotocol": "hex",
|
||
|
|
"routertable": {
|
||
|
|
"routertable": ["mqtt_1"]
|
||
|
|
}
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|