Closed flyboy013 closed 2 years ago
Yes, recently they changed the names of some of the wifi status fields and I didn't update the code to match. So, if you (as I assume) are using the newest arduino-esp32 then compilation breaks like you saw. I just pushed a commit to fix this. Or, just comment out that whole block. It isn't strictly necessary to have that block but it does try to fix wifi connection problems.
I am using -> info.wifi_sta_disconnected.reason instead of the deprecated info.disconnected.reason and ARDUINO_EVENT_WIFI_STA_CONNECTED, ARDUINO_EVENT_WIFI_STA_GOT_IP, ARDUINO_EVENT_WIFI_STA_DISCONNECTED instead of SYSTEM_EVENT because thats not defined properly.
@collin80 Thank you.
I’m getting errors when attempting to compile ESP32RET. Specifically, I’m getting:
This error is in WiFiManger::setup(), which is where info is defined as type WiFiEventInfo_t. Here is an excerpt of the code:
ESP32RET includes WiFi.h which includes WiFiType.h which defines arduino_event_info_t as WiFiEventInfo_t.
WiFiEventInfo_t is defined in WiFiGeneric.h as show below. There is no member disconnected.
Fully compile output is:
What am I missing? Has arduino_event_info_t changed such that member disconnected was removed?
Thx.