1{
2  "name": "Custom serial connector",
3  "devices": [
4    {
5      "name": "CustomSerialDevice1",
6      "type": "default",
7      "port": "/dev/ttyUSB0",
8      "baudrate": 9600,
9      "converter": "CustomSerialUplinkConverter",
10      "telemetry": [
11        {
12          "type": "byte",
13          "key": "humidity",
14          "untilDelimiter": "\r"
15        }
16      ],
17      "attributes":[
18        {
19          "key": "SerialNumber",
20          "type": "string",
21          "fromByte": 4,
22          "toByte": -1
23        }
24      ],
25      "attributeUpdates": [
26        {
27          "attributeOnThingsBoard": "attr1",
28          "stringToDevice": "value = ${attr1}\n"
29        }
30      ]
31    }
32  ]
33}