1
0
Fork 0
 
 
Go to file
Bo Jeanes ac7eedb066 Fix README formatting 2022-07-17 10:52:16 +10:00
src Rough connectivity and idea 2022-07-17 10:41:56 +10:00
.gitignore Initial commit based on rumqttc example 2022-07-15 17:11:38 +10:00
Cargo.lock Rough connectivity and idea 2022-07-17 10:41:56 +10:00
Cargo.toml Rough connectivity and idea 2022-07-17 10:41:56 +10:00
README.md Fix README formatting 2022-07-17 10:52:16 +10:00

README.md

ModbusMQTT

Very rough for now.

Topic spec

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

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