1
0
Fork 0
modbusmqtt/README.md

36 lines
762 B
Markdown
Raw Normal View History

2022-07-17 10:41:56 +10:00
# ModbusMQTT
Very rough for now.
## Topic spec
```
2022-07-17 11:06:00 +10:00
prefix/status -> { "status": "running" } # last-will message here too
2022-07-17 10:41:56 +10:00
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
2022-07-17 10:52:16 +10:00
* https://github.com/Instathings/modbus2mqtt
* https://github.com/TenySmart/ModbusTCP2MQTT - Sungrow inverter specific