2022-07-03 17:43:58 +00:00
|
|
|
#ifndef APP_WIFI_H
|
|
|
|
#define APP_WIFI_H
|
|
|
|
|
|
|
|
/* ESP drivers */
|
|
|
|
#include "esp_system.h"
|
|
|
|
|
|
|
|
/* FreeRTOS */
|
|
|
|
#include "freertos/FreeRTOS.h"
|
|
|
|
#include "freertos/event_groups.h"
|
|
|
|
|
2023-05-21 10:43:13 +00:00
|
|
|
typedef enum {
|
|
|
|
APP_WIFI_EVENT_TIMEOUT,
|
|
|
|
APP_WIFI_EVENT_CONNECTED,
|
|
|
|
} app_wifi_event_t;
|
2022-07-03 17:43:58 +00:00
|
|
|
|
|
|
|
esp_err_t app_wifi_init(void);
|
2023-05-21 10:43:13 +00:00
|
|
|
esp_err_t app_wifi_deinit(void);
|
|
|
|
app_wifi_event_t app_wifi_wait_event(uint32_t max_timeout_ms);
|
2022-07-03 17:43:58 +00:00
|
|
|
|
|
|
|
#endif
|