forked from wirenboard/wb-mqtt-serial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig-uniel-test.json
52 lines (51 loc) · 1.12 KB
/
config-uniel-test.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// Configuration options
{
"debug": false,
"ports": [
{
"port_type" : "serial",
"path" : "/dev/ttyNSC1",
"baud_rate": 9600,
"parity": "N",
"data_bits": 8,
"stop_bits": 1,
"poll_interval": 10,
"enabled": true,
"devices" : [
{
"name": "PseudoUniel",
"id": "pseudo_uniel",
"slave_id": 1,
"enabled": true,
"protocol": "uniel",
"channels": [
{
"name": "Input 0",
"reg_type": "input",
"address": "0x0a"
},
{
"name" : "Relay 1",
"reg_type": "relay",
"address": "0x1b"
},
{
"name": "LowThr",
"reg_type": "param",
"address": "0x02",
"type": "range",
"max": "0xff"
},
{
"name" : "LED 1",
"reg_type": "brightness",
"address": "0x141",
"type": "range",
"max": "0xff"
}
]
}
]
}
]
}