22 lines
394 B
C
22 lines
394 B
C
#ifndef WIFI_CON_H
|
|
#define WIFI_CON_H
|
|
|
|
#include <esp_event.h>
|
|
#include <esp_log.h>
|
|
#include <esp_system.h>
|
|
#include <esp_wifi.h>
|
|
#include <freertos/event_groups.h>
|
|
#include <nvs_flash.h>
|
|
|
|
#define MAX_FAILURES 10
|
|
#define WIFI_TAG "WIFI"
|
|
static EventGroupHandle_t wifiEventGroup;
|
|
|
|
#define WIFI_SUCCESS BIT0
|
|
#define WIFI_FAILURE BIT1
|
|
|
|
// NEW FUNC DEFS
|
|
esp_err_t initWifi();
|
|
|
|
#endif // !WIFI_CON_H
|