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.