1RESTMBMASTER.CONF(5) Rest API Modbus master configuration RESTMBMASTER.CONF(5)
2
3
4

NAME

6       restmbmaster.conf — restmbmaster configuration file
7

DESCRIPTION

9       restmbmaster  uses  very simple format of configuration file, each line
10       has following format:
11              key = value
12
13       In case the option does not support value the line format is:
14              key
15

OPTIONS

17       debug  Turns on debugging messages. Repeating the option increases ver‐
18              bosity.
19
20       connect = CONNECT_URI
21              Specifies  the  target  Modbus bus to connect to. Supported for‐
22              mats:
23
24              tcp://HOSTNAME[:PORT]
25
26                     Example: tcp://test.abc:1000
27
28                     Default PORT: 502
29
30              rtu:DEVICEPATH[?baud=BAUDRATE]
31
32                     Example: rtu:/dev/ttyS0?baud=9600
33
34                     Default BAUDRATE: 115200
35
36       port = PORT
37              Specifies TCP port on which the webserver is listening and where
38              the Rest API is exposed.
39

EXAMPLES

41       Example Modbus TCP config:
42
43       connect = tcp://127.0.0.1:5020
44       port = 8080
45
46       Example Modbus RTU config:
47
48       connect = rtu:/dev/ttyUSB0?baud=9600
49       port = 8080
50
51       Example Modbus RTU config with debug messages verbosity:
52
53       connect = rtu:/dev/ttyUSB0?baud=9600
54       port = 8080
55       debug
56

SEE ALSO

58       restmbmaster(8),
59

AUTHOR

61       Jiri  Pirko is the original author and current maintainer of restmbmas‐
62       ter.
63
64
65
66restmbmaster                      2019-12-28              RESTMBMASTER.CONF(5)
Impressum