The Espressif ESP-Modbus Library (esp-modbus) supports Modbus communication in the networks based on RS485, Wi-Fi, and Ethernet interfaces.
Since ESP-IDF version v5.0, the component
freemodbus has been moved from ESP-IDF to a separate repository:
The documentation can be found through the link below:
The examples below demonstrate the ESP-Modbus library of serial and TCP ports for both slave and master implementations respectively.
Please refer to the
README.md documents of each specific example for details.
For the detailed protocol specifications, see The Modbus Organization.