zivillian / esp32-modbus-gateway

ESP32 Modbus RTU/TCP Gateway
GNU General Public License v3.0
138 stars 58 forks source link

Had to pin arduino-esp32 to a recent version #15

Closed mklingn closed 1 year ago

mklingn commented 1 year ago

Hi and thanks for sharing your work! I had compiled commit 40c707027f0fb2cdfe0106c22369596f1f00a955 (August last year) successfully a while ago on my machine.

Now, when I tried to compile the latest version, cloned into a new dir and got:

lib/eModbus/src/RTUutils.cpp:126:10:` error: 'class HardwareSerial' has no member named 'setRxFIFOFull'
   serial.setRxFIFOFull(1);

I updated platformio via pio upgrade, but this did not help. Only when I pinned to the latest arduino-esp32 lib, compilation succeeded:

platform = espressif32@5.4.0

I am pretty sure this was caused by some misconfiguration on my system, but just in case anyone faces the same issue: This helped :-)