Skip to content

Compilation error: 'SYSTEM_EVENT_STA_GOT_IP' was not declared in this scope; did you mean 'IP_EVENT_STA_GOT_IP'? #316

@jjpd19

Description

@jjpd19

While compiling I got this error:

meteomir.ino: In function 'void WiFiEvent(arduino_event_id_t)':
E:\Proyectos\Arduino\meteomir\meteomir.ino:42:10: error: 'SYSTEM_EVENT_STA_GOT_IP' was not declared in this scope; did you mean 'IP_EVENT_STA_GOT_IP'?
   42 |     case SYSTEM_EVENT_STA_GOT_IP:
      |          ^~~~~~~~~~~~~~~~~~~~~~~
      |          IP_EVENT_STA_GOT_IP
E:\Proyectos\Arduino\meteomir\meteomir.ino:48:10: error: 'SYSTEM_EVENT_STA_DISCONNECTED' was not declared in this scope; did you mean 'WIFI_EVENT_STA_DISCONNECTED'?
   48 |     case SYSTEM_EVENT_STA_DISCONNECTED:
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |          WIFI_EVENT_STA_DISCONNECTED

Before that, despite of having installed the library with the zip file, it asked me for the folder AsynMqttClient with some file. I had to extract it manually from the zip and copied within the .ino file directory.

Would anybody help me? Thank you in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions