#ifndef WIFI_H #define WIFI_H #include "esp_event.h" /* The event group allows multiple bits for each event, but we only care about two events: * - we are connected to the AP with an IP * - we failed to connect after the maximum amount of retries */ #define WIFI_CONNECTED_BIT BIT0 #define WIFI_FAIL_BIT BIT1 extern EventGroupHandle_t s_wifi_event_group; void wifiInit(); void wifi_connect(); void wifi_scan(); #endif