1
0
Fork 0
 
 
Go to file
Bo Jeanes ca5639b6e4 Refactor register size into value type 2022-07-19 23:13:21 +10:00
src Refactor register size into value type 2022-07-19 23:13:21 +10:00
.gitignore Initial commit based on rumqttc example 2022-07-15 17:11:38 +10:00
Cargo.lock Async modbus polling 2022-07-18 11:17:45 +10:00
Cargo.toml Async modbus polling 2022-07-18 11:17:45 +10:00
README.md last will 2022-07-17 11:06:00 +10:00

README.md

ModbusMQTT

Very rough for now.

Topic spec

prefix/status -> { "status": "running" } # last-will message here too

prefix/connect/<connection> <- {
        "host": "localhost",
        "port": 502,
        "slave": 1,
    }

prefix/status/<connection> -> {
        "host": "localhost",
        "port": 502,
        "slave": 1,
        "status": "connected"
    }

prefix/logs/<connection> -> { "message": "log message", level: "level" }

prefix/connection/<connection>/monitor[/opt-name] <- {
        "address": 5100,
        "type": "holding|input",
        "count": 1,
        "interval": 10, // seconds
}

Similar projects