Compilation Error for ESP32
rajsalieabs opened this issue · 1 comments
rajsalieabs commented
When compiling the example code EthernetModbusClientToggle.ino for ESP32 based nodemcu I get this error
error: 'SERIAL_PORT_HARDWARE' was not declared in this scope
RS485Class RS485(SERIAL_PORT_HARDWARE, RS485_DEFAULT_TX_PIN, RS485_DEFAULT_DE_PIN, RS485_DEFAULT_RE_PIN);
Any ideas on resolving this?
per1234 commented
Hi @rajsalieabs. Thanks for your report. You have encountered a deficiency in the "ArduinoRS485" library, which also affects the users of the "ArduinoModbus" library due to it having a dependency on "ArduinoRS485". So this is a topic for the arduino-libraries/ArduinoRS485
repository issue tracker, and is already tracked there: