-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathconfig.sample.json
95 lines (95 loc) · 3.07 KB
/
config.sample.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
"debug": false,
"ports": [
{
"port_type" : "serial",
"path" : "/dev/ttyNSC0",
"baud_rate": 9600,
"parity": "N",
"data_bits": 8,
"stop_bits": 2,
"enabled": true,
"devices" : [
{
"device_type" : "MSU34",
"slave_id": 2,
"enabled": true,
"channels": [
{
"name" : "Illuminance",
"read_period_ms": 300
},
{
"name": "Pressure",
"read_rate_limit_ms": 10000
}
]
},
{
"device_type" : "MSU24",
"name": "MSU24",
"id": "msu24",
"slave_id": 34,
"enabled": true
//"channels": [
// here we can add new channel
// {
// "name" : "New channel",
// "reg_type" : "input",
// "address" : 3,
// "type": "text"
// }
//]
}
]
},
{
"path" : "/dev/ttyNSC1",
"baud_rate": 9600,
"parity": "N",
"data_bits": 8,
"stop_bits": 1,
"enabled": true,
"devices" : [
{
"device_type" : "WB-MRGB",
"id" : "wb-mrgb",
"slave_id" : 2,
"channels" : [
{
"name" : "RGB",
"type" : "rgb",
"read_period_ms" : 102,
"consists_of" : [
{
"reg_type" : "holding",
"address" : 1
},
{
"reg_type" : "holding",
"address" : 0
},
{
"reg_type" : "holding",
"address" : 2
}
]
},
{
"name" : "Button 1 counter",
"reg_type" : "holding",
"readonly" : true,
"address" : 32,
"type" : "value"
}
]
},
{
"device_type" : "WB-M1W2 DI",
"slave_id" : 3,
"in1_mode": 1
}
]
}
]
}