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
40       dontkeep
41              Don't  keep  the connection open, connect only for the time when
42              command is processed.
43

EXAMPLES

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

SEE ALSO

62       restmbmaster(8),
63

AUTHOR

65       Jiri Pirko is the original author and current maintainer of  restmbmas‐
66       ter.
67
68
69
70restmbmaster                      2019-12-28              RESTMBMASTER.CONF(5)
Impressum