# ModbusMQTT Very rough for now. ## Topic spec ``` prefix/status -> { "status": "running" } # last-will message here? prefix/connect/ <- { "host": "localhost", "port": 502, "slave": 1, } prefix/status/ -> { "host": "localhost", "port": 502, "slave": 1, "status": "connected" } prefix/logs/ -> { "message": "log message", level: "level" } prefix/connection//monitor[/opt-name] <- { "address": 5100, "type": "holding|input", "count": 1, "interval": 10, // seconds } ``` ## Similar projects https://github.com/Instathings/modbus2mqtt https://github.com/TenySmart/ModbusTCP2MQTT - Sungrow inverter specific