1
0
Fork 0
 
 
Go to file
Bo Jeanes 78d08623a6 Add more tests and parse array/string reg in config 2022-08-14 12:22:06 +10:00
src Add more tests and parse array/string reg in config 2022-08-14 12:22:06 +10:00
.gitignore Initial commit based on rumqttc example 2022-07-15 17:11:38 +10:00
Cargo.lock Add tracing crates 2022-08-13 13:58:48 +10:00
Cargo.toml Add tracing crates 2022-08-13 13:58:48 +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