1
0
Fork 0
 
 
Go to file
Bo Jeanes fa867cbfe5 Store connection handler in a map db 2022-07-17 18:40:10 +10:00
src Store connection handler in a map db 2022-07-17 18:40:10 +10:00
.gitignore Initial commit based on rumqttc example 2022-07-15 17:11:38 +10:00
Cargo.lock Awkwardly put into async tasks O_o 2022-07-17 18:14:55 +10:00
Cargo.toml Awkwardly put into async tasks O_o 2022-07-17 18:14:55 +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