-
Notifications
You must be signed in to change notification settings - Fork 10
/
config.json
39 lines (39 loc) · 1 KB
/
config.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
{
canbus: {
channel: "vcan0",
interface: "socketcan_ctypes"
},
canopen: {
sync_interval: 10,
sync_count: 6,
auto_start: true
},
mqtt: {
// username: "user", // not implemented yet
// password: "pass",// not implemented yet
will: { // not implemented yet
topic: "/last/will/topic",
payload: "I died"
}
},
receivers: [
{
canid: "0x123",
unpack_template: "u8u8u8",
var_names: ["val1", "val2", "val3 via int2on_off"],
topic_template: "/test/bla",
payload_template: "val1= {val1:x}, val2= {val2:x}, val3= {val3}"
},
],
transmitters: [
{
subscriptions: "/test/trans",
canid: "val1",
pack_template: "u8",
var_names: "val1",
topic_template: "",
payload_template: "{val1:d}",
// exact_match: true // not implemented yet
},
]
}