Skip to content

A bridge between Modbus (TCP, RTU, Sungrow WiNet-S) and MQTT

Notifications You must be signed in to change notification settings

bjeanes/modbus-mqtt

Repository files navigation

ModbusMQTT

This repository is a workspace for developing ModbusMQTT and the crates developed in the course of the project.

View the appropriate READMEs in each package directory for details about each.

Docker Crates.io docs.rs license

ModbusMQTT is a bridge between Modbus devices and MQTT. It aims to allow the operator to generically expose any compatible Modbus device as though its API were MQTT.

Crates.io docs.rs Crates.io

This is a barebones API client for reading and writing settings for Sungrow solar and hybrid inverters equipped with a WiNet-S communications module. Its only known use is tokio_modbus-winets (see below).

Crates.io docs.rs Crates.io

This wraps sungrow-winets client in the appropriate traits from tokio-modbus to allow accessing the Modbus registers which the Sungrow WiNet-S dongle exposes. The reason for this is simply that Sungrow's TCP Modbus support is buggy and inconsistent (though improving).