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

Compile error: SYSTEM_EVENT_STA_GOT_IP and SYSTEM_EVENT_STA_DISCONNECTED #1

Open
rvarnam opened this issue Jan 31, 2023 · 1 comment

Comments

@rvarnam
Copy link

rvarnam commented Jan 31, 2023

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

  • Arduino IDE 2.0.3
  • ArduioWebsockets by Gil Maimon 0.5.3
  • M5Stick-C-Plus

`[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
Copy link
Contributor

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?

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