RESTMBMASTER.CONF(5)
β¨ restmbmaster.conf β the config file that feeds your restmbmaster π
okay bestie, gather round, because this is the configuration file for restmbmaster, and honestly? it's giving effortless. iykyk.
πΈ NAME πΈ
restmbmaster.conf β the configuration file for restmbmaster, fr fr. this is section 5 of the manual, so you know it's about file formats, and yes, we're being fancy today π
π¦ DESCRIPTION π¦
so the tea is: restmbmaster uses a very simple config file format. like, refreshingly simple. every single line looks like this:
key = value
and if an option doesn't take a value at all? no problem, the line is just:
key
that's it. that's the whole vibe. no YAML indentation drama, no TOML soul-searching, no XML. just vibes and equals signs. slay β¨
π OPTIONS π
okay here's the main character section. every option, no skips, we're not doing that here π
debugβ turns on debugging messages. and the way that you can just repeat the option to crank the verbosity up more? obsessed. moredebuglines = more talking. π£οΈconnect = CONNECT_URIβ tells it which target Modbus bus to connect to. supported formats are below, and yes you have options, we love a flexible queen: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β the TCP port where the webserver is listening and where the Rest API gets exposed. this is literally where the magic gets served up πdontkeepβ don't keep the connection open. it only connects for the exact amount of time the command is being processed. no lingering, no hanging around, it's giving "we're not exclusive" π
π 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 how the debug line just chills there with no =? that's the no-value format doing its thing. iconic behavior, honestly π
π§ SEE ALSO π§
restmbmaster(8), β go read that one too, bestie, it's the whole point of all this π«Ά
π AUTHOR π
Jiri Pirko is the original author and current maintainer of restmbmaster. we stan. π
lowkey reminder: this page isrestmbmaster.conf, section5, from therestmbmasterproject β the date on this one is2019-12-28. that's the source, the version vibe, and the date, all wrapped up in a cute little bow for you πβ¨ love u, go configure something π
π¦ where this page comes from
- fedora 43: restmbmaster 5-9.fc43 Β· GPL-2.0-or-later
- fedora 44: restmbmaster 5-10.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms