ESP32 Modbus TCP/IP protocol over ethernet

Hello everyone,
Thanks to WVESP32, with your indications and some modifications more i solved the problem.
I’m posting what i did because it could help somebody in the future.
In ArduinoModbus, delete modbus-rtu.cpp of libmodbus folder.
I had a folder called “ArduinoRS485”, i saw that it is not necessary, thus, also delete this one.
In modbus-tcp.cpp of libmodbus folder, comment or delete line: "#define printf(…) {}.
This is what i had to do.
By the moment it works without any problem.
Have a nice weekend.

1 Like