137 lines
5.7 KiB
JSON
137 lines
5.7 KiB
JSON
{
|
|
"name": "TCPCommander",
|
|
"displayName": "tcp commander",
|
|
"id": "741b7b0a-0c9c-4c93-be99-0d0bcf5a4643",
|
|
"vendors": [
|
|
{
|
|
"name": "tcpCommander",
|
|
"displayName": "TCP Commander",
|
|
"id": "9181278e-7812-4a3e-a9ce-f00f3f8b8afd",
|
|
"deviceClasses": [
|
|
{
|
|
"id": "c67d059f-694f-47cb-8e1d-9e3e6d014c1a",
|
|
"name": "tcpOutput",
|
|
"displayName": "TCP Output",
|
|
"deviceIcon": "Network",
|
|
"createMethods": ["user"],
|
|
"basicTags": [
|
|
"Service"
|
|
],
|
|
"criticalStateTypeId": "725b541a-9e0c-4634-81eb-e415c0b8f025",
|
|
"primaryStateTypeId": "725b541a-9e0c-4634-81eb-e415c0b8f025",
|
|
"paramTypes": [
|
|
{
|
|
"id": "2a3fcb23-931b-4ba1-b134-c49b656c76f7",
|
|
"name": "ipv4address",
|
|
"displayName": "IPv4 Address",
|
|
"type": "QString",
|
|
"inputType": "IPv4Address",
|
|
"defaultValue": "127.0.0.1"
|
|
},
|
|
{
|
|
"id": "bee8b151-815a-4159-9d8a-42b76e99b42c",
|
|
"name": "port",
|
|
"displayName": "Port",
|
|
"type": "int",
|
|
"defaultValue": "22"
|
|
}
|
|
],
|
|
"stateTypes":[
|
|
{
|
|
"id": "725b541a-9e0c-4634-81eb-e415c0b8f025",
|
|
"name": "connected",
|
|
"displayName": "connected",
|
|
"type": "bool",
|
|
"defaultValue": false,
|
|
"displayNameEvent": "connection status changed"
|
|
}
|
|
],
|
|
"actionTypes": [
|
|
{
|
|
"id": "6bc52462-b192-46a4-a6df-92cc5a479c89",
|
|
"name": "outputData",
|
|
"displayName": "Send Data",
|
|
"paramTypes": [
|
|
{
|
|
"id": "6604c852-6b24-4707-b8e5-1ddd8032efcc",
|
|
"name": "outputDataArea",
|
|
"displayName": "Data",
|
|
"type": "QString",
|
|
"inputType": "TextArea"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "bc40e84a-69c4-4fd2-beb0-bd65f19aa8ff",
|
|
"name": "tcpInput",
|
|
"displayName": "TCP Input",
|
|
"deviceIcon": "Network",
|
|
"createMethods": ["user"],
|
|
"basicTags": [
|
|
"Service"
|
|
],
|
|
"primaryStateTypeId": "725b541a-9e0c-4634-81eb-e415c0b8f025",
|
|
"paramTypes": [
|
|
{
|
|
"id": "bee8b151-815a-4159-9d8a-42b76e99b42c",
|
|
"name": "port",
|
|
"displayName": "Port",
|
|
"type": "int",
|
|
"defaultValue": "22"
|
|
},
|
|
{
|
|
"id": "d99f55c7-0e14-45ee-b0f0-33f2d1d2e674",
|
|
"name": "comparision",
|
|
"displayName": "Data Comparison",
|
|
"type": "QString",
|
|
"allowedValues": [
|
|
"Is exactly",
|
|
"Contains",
|
|
"Contains not",
|
|
"Starts with",
|
|
"Ends with"
|
|
],
|
|
"defaultValue": "Exactly"
|
|
},
|
|
{
|
|
"id": "23051bdf-3f50-41fa-abde-bc4fe0bcc4fc",
|
|
"name": "inputData",
|
|
"displayName": "Command",
|
|
"type": "QString",
|
|
"inputType": "TextArea",
|
|
"defaultValue": ""
|
|
}
|
|
],
|
|
"stateTypes": [
|
|
{
|
|
"id": "725b541a-9e0c-4634-81eb-e415c0b8f025",
|
|
"name": "connected",
|
|
"displayName": "connected",
|
|
"type": "bool",
|
|
"defaultValue": false,
|
|
"displayNameEvent": "connection status changed"
|
|
},
|
|
{
|
|
"id": "b98fdacc-59d7-41c4-b790-1fdca50dfb22",
|
|
"name": "dataReceived",
|
|
"displayName": "Data Received",
|
|
"type": "QString",
|
|
"defaultValue": "",
|
|
"displayNameEvent": "Data received"
|
|
}
|
|
],
|
|
"eventTypes": [
|
|
{
|
|
"id": "6d7c6df6-cb61-4d9e-b0d7-37c43911ca4b",
|
|
"name": "commandReceived",
|
|
"displayName": "Command Received"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|