nymea-plugins/serialportcommander/integrationpluginserialport...

125 lines
5.3 KiB
JSON

{
"displayName": "Serial port commander",
"name": "SerialPortCommander",
"id": "fe93a12e-36f4-4015-8019-26b659817773",
"vendors": [
{
"name": "nymea",
"displayName": "nymea",
"id": "2062d64d-3232-433c-88bc-0d33c0ba2ba6",
"thingClasses": [
{
"id": "540566d8-a2a6-4ce2-9a1e-a66a989e6199",
"name": "serialPortCommander",
"displayName": "Serial port commander",
"createMethods": ["user", "discovery"],
"interfaces": ["connectable", "outputtrigger", "inputtrigger"],
"paramTypes": [
{
"id": "ed49f7d8-ab18-4c37-9b80-1004b75dcb91",
"name": "serialPort",
"displayName": "Serial port",
"type": "QString",
"inputType": "TextLine",
"defaultValue": "ttyAMA0"
},
{
"id": "45dfc828-f238-4263-89a3-9b35cf5dea39",
"name": "baudRate",
"displayName": "Baud rate",
"type": "int",
"defaultValue": 9600
},
{
"id": "add4f7fb-1be9-4944-a420-3355b20174f9",
"name": "dataBits",
"displayName": "Data bits",
"type": "int",
"defaultValue": 8
},
{
"id": "4ea8bcdf-d4c5-45a4-a54f-f10ac3f08a78",
"name": "stopBits",
"displayName": "Stop bits",
"type": "int",
"defaultValue": 0
},
{
"id": "7e5d197f-0224-4c6f-8e86-0e7c867da5f1",
"name": "flowControl",
"displayName": "Flow control",
"type": "QString",
"inputType": "TextLine",
"allowedValues": [
"No Flow Control",
"Hardware Control",
"Software Control"
],
"defaultValue": "No Flow Control"
},
{
"id": "72de1b08-2a27-49c5-90e0-8788c3ea1da3",
"name": "parity",
"displayName": "Parity",
"type": "QString",
"inputType": "TextLine",
"allowedValues": [
"No Parity",
"Even Parity",
"Odd Parity",
"Space Parity",
"Mark Parity"
],
"defaultValue": "No Parity"
}
],
"stateTypes": [
{
"id": "e308259d-9180-4880-a0bf-1734b52de9ac",
"name": "connected",
"displayName": "connected",
"displayNameEvent": "connected changed",
"defaultValue": false,
"type": "bool"
}
],
"actionTypes": [
{
"id": "0b22c4d1-f5f6-4a93-aa93-660d27bf8f71",
"name": "trigger",
"displayName": "Trigger",
"paramTypes": [
{
"id": "a27ecedc-424e-49ce-8956-9dbca2feac02",
"name": "outputData",
"displayName": "Data",
"type": "QString",
"inputType": "TextArea",
"defaultValue": ""
}
]
}
],
"eventTypes": [
{
"id": "32087633-616c-45a7-85af-4f1695c22359",
"name": "triggered",
"displayName": "Data received",
"paramTypes": [
{
"id": "b98fdacc-59d7-41c4-b790-1fdca50dfb22",
"name": "inputData",
"displayName": "Received Data",
"type": "QString",
"defaultValue": ""
}
]
}
]
}
]
}
]
}