Open dirk99 opened 2 years ago
Hello,
I have also a lot of problems with libraries.
one is:
Arduino\libraries\ArduinoRS485\src\RS485.cpp:189:18: 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);
regards Martin
Hello,
I have also a lot of problems with libraries.
one is:
Arduino\libraries\ArduinoRS485\src\RS485.cpp:189:18: 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);
regards Martin
Have you been able to fix the problem? I'm trying to compile the code for an ESP32 and getting same errors.
Nein, leider nichtViele GrüßeDirk @.***: +491702309712
https://github.com/harihanv/esp32/tree/main/ArduinoRS485-esp32, library have been ported to esp32. I have added #if defined(ESP32) in the rs485 header file and also library.properties file have been updated.
Thank you Harihanv, but I have still problems with compiling. Do you have a BIN file for the standard ESP32 boards? regards Martin
`WARNING: library ArduinoRS485 claims to run on samd, mbed_portenta, mbed_opta architecture(s) and may be incompatible with your current board which runs on esp32 architecture(s).
G:\1\gate\esp32-modbus-gateway-main\arduino-modbus-rtu-tcp-gateway\01-interfaces.ino: In function 'void WiFiDisconnected(arduino_event_id_t, arduino_event_info_t)':
G:\1\gate\esp32-modbus-gateway-main\arduino-modbus-rtu-tcp-gateway\01-interfaces.ino:26:25: error: 'union arduino_event_info_t' has no member named 'disconnected'; did you mean 'eth_connected'?
Serial.println(info.disconnected.reason);
^~~~
eth_connected
G:\1\gate\esp32-modbus-gateway-main\arduino-modbus-rtu-tcp-gateway\01-interfaces.ino: In function 'void startWifi()':
G:\1\gate\esp32-modbus-gateway-main\arduino-modbus-rtu-tcp-gateway\01-interfaces.ino:33:49: error: 'SYSTEM_EVENT_STA_DISCONNECTED' is not a member of 'arduino_event_id_t'
WiFi.onEvent(WiFiDisconnected, WiFiEvent_t::SYSTEM_EVENT_STA_DISCONNECTED);
^~~~~~~~~
exit status 1
Compilation error: 'union arduino_event_info_t' has no member named 'disconnected'; did you mean 'eth_connected'?`
hello
Hi,
for me is it not possible to compile this files. Witch libraries are should be linked. The streaming and wifi lib generates errors
thanks Dirk