utopiantools / m5stickc-pro-clicker

Use an M5StickC as a ProPresenter Remote Control
1 stars 0 forks source link

Compile error: SYSTEM_EVENT_STA_GOT_IP and SYSTEM_EVENT_STA_DISCONNECTED #1

Open rvarnam opened 1 year ago

rvarnam commented 1 year ago

I'm getting the error below when compiling. I'm using:

`[filepath]ProPresenterClicker.ino: In function 'void setup()': [filepath]ProPresenterClicker.ino:218:40: error: 'SYSTEM_EVENT_STA_GOT_IP' is not a member of 'arduino_event_id_t' WiFi.onEvent(WiFiGotIP, WiFiEvent_t::SYSTEM_EVENT_STA_GOT_IP); ^~~~~~~ [filepath]ProPresenterClicker.ino:219:47: 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: 'SYSTEM_EVENT_STA_GOT_IP' is not a member of 'arduino_event_id_t'`

Any thoughts? Thanks!

jeffmikels commented 1 year ago

It sounds like a library version issue. I can't tell which library is the problem, but that's what this sounds like. Either you need to use the same libraries we used or you need to update the code to work with your library.

I currently don't have time to update the code. Do you know someone who can?