restmbmaster.conf - Man Page
restmbmaster configuration file
Description
- restmbmaster uses very simple format of configuration file, each line has following format:
key = value
- In case the option does not support value the line format is:
key
Options
- debug
Turns on debugging messages. Repeating the option increases verbosity.
- connect = CONNECT_URI
Specifies the target Modbus bus to connect to. Supported formats:
- tcp://HOSTNAME[:PORT]
Example: tcp://test.abc:1000
Default PORT: 502
- rtu:DEVICEPATH[?baud=BAUDRATE]
Example: rtu:/dev/ttyS0?baud=9600
Default BAUDRATE: 115200
- port = PORT
Specifies TCP port on which the webserver is listening and where the Rest API is exposed.
- dontkeep
Don't keep the connection open, connect only for the time when command is processed.
Examples
Example Modbus TCP config:
connect = tcp://127.0.0.1:5020 port = 8080
Example Modbus RTU config:
connect = rtu:/dev/ttyUSB0?baud=9600 port = 8080
Example Modbus RTU config with debug messages verbosity:
connect = rtu:/dev/ttyUSB0?baud=9600 port = 8080 debug
See Also
Author
Jiri Pirko is the original author and current maintainer of restmbmaster.
Referenced By
2019-12-28 restmbmaster Rest API Modbus master configuration