Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Libraries #6

Open
dirk99 opened this issue Sep 19, 2022 · 7 comments
Open

Libraries #6

dirk99 opened this issue Sep 19, 2022 · 7 comments

Comments

@dirk99
Copy link

dirk99 commented Sep 19, 2022

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

@martin8310
Copy link

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

@wib100
Copy link

wib100 commented Dec 20, 2022

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.

@dirk99
Copy link
Author

dirk99 commented Dec 20, 2022 via email

@harihanv
Copy link
Owner

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.

@martin8310
Copy link

Thank you Harihanv, but I have still problems with compiling. Do you have a BIN file for the standard ESP32 boards? regards Martin

@martin8310
Copy link

`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'?`

@martin8310
Copy link

hello

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants