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

ESP32 Wifi - System_Event or Arduino_Event #6

Open
MagicEk opened this issue Jan 29, 2023 · 1 comment
Open

ESP32 Wifi - System_Event or Arduino_Event #6

MagicEk opened this issue Jan 29, 2023 · 1 comment

Comments

@MagicEk
Copy link

MagicEk commented Jan 29, 2023

I'm trying to get the new version of Redscape working with my ESP32.

I've tried to use parts of the WiFi and Json code from your button project but I'm getting errors when compiling the code. I've also tried your example code "button for ESP32 and MySQL". Getting the same errors when compiling.

In file included from C:\Users\Erik\Documents\ArduinoData\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi\src/WiFi.h:31:0,
from F:\Escape Room\Arduino\button_playful_tech_esp32_v1\button_playful_tech_esp32_v1.ino:24:
F:\Escape Room\Arduino\button_playful_tech_esp32_v1\button_playful_tech_esp32_v1.ino: In function 'void setup()':
C:\Users\Erik\Documents\ArduinoData\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi\src/WiFiType.h:35:22: error: 'ARDUINO_EVENT_WIFI_STA_GOT_IP' is not a member of 'system_event_id_t'
#define WiFiEvent_t system_event_id_t
^
F:\Escape Room\Arduino\button_playful_tech_esp32_v1\button_playful_tech_esp32_v1.ino:107:6: note: in expansion of macro 'WiFiEvent_t'
}, WiFiEvent_t::ARDUINO_EVENT_WIFI_STA_GOT_IP);
^
F:\Escape Room\Arduino\button_playful_tech_esp32_v1\button_playful_tech_esp32_v1.ino: In lambda function:
button_playful_tech_esp32_v1:111:29: error: 'union system_event_info_t' has no member named 'wifi_sta_disconnected'
Serial.println(info.wifi_sta_disconnected.reason);
^
In file included from C:\Users\Erik\Documents\ArduinoData\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi\src/WiFi.h:31:0,
from F:\Escape Room\Arduino\button_playful_tech_esp32_v1\button_playful_tech_esp32_v1.ino:24:
F:\Escape Room\Arduino\button_playful_tech_esp32_v1\button_playful_tech_esp32_v1.ino: In function 'void setup()':
C:\Users\Erik\Documents\ArduinoData\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi\src/WiFiType.h:35:22: error: 'ARDUINO_EVENT_WIFI_STA_DISCONNECTED' is not a member of 'system_event_id_t'
#define WiFiEvent_t system_event_id_t
^
F:\Escape Room\Arduino\button_playful_tech_esp32_v1\button_playful_tech_esp32_v1.ino:113:8: note: in expansion of macro 'WiFiEvent_t'
}, WiFiEvent_t::ARDUINO_EVENT_WIFI_STA_DISCONNECTED);
^
Multiple libraries were found for "WiFi.h"
Used: C:\Users\Erik\Documents\ArduinoData\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi
Unused: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\libraries\WiFi
exit status 1
'union system_event_info_t' has no member named 'wifi_sta_disconnected'

Been searching on google for help but havn't found anything helpful,
I'm new to coding and would appreciate any help.

Best regards
Erik

@alastaira
Copy link
Collaborator

Can you try upgrading to the latest version of the esp-core? (currently v2.0.14)

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

2 participants