summaryrefslogtreecommitdiff
path: root/software/include/wifi.h
diff options
context:
space:
mode:
Diffstat (limited to 'software/include/wifi.h')
-rw-r--r--software/include/wifi.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/software/include/wifi.h b/software/include/wifi.h
new file mode 100644
index 0000000..0d3896e
--- /dev/null
+++ b/software/include/wifi.h
@@ -0,0 +1,29 @@
+#include <string.h>
+#include "freertos/FreeRTOS.h"
+#include "freertos/task.h"
+#include "freertos/event_groups.h"
+#include "esp_system.h"
+#include "esp_wifi.h"
+#include "esp_event.h"
+#include "esp_log.h"
+#include "nvs_flash.h"
+
+#include "lwip/err.h"
+#include "lwip/sys.h"
+
+#define ESP_WIFI_SSID "BELL83"
+#define ESP_WIFI_PASS "83castleton@"
+#define ESP_MAXIMUM_RETRY 100
+
+#define WIFI_CONNECTED_BIT BIT0
+#define WIFI_FAIL_BIT BIT1
+
+static const char *WIFI_TAG = "WIFI";
+
+EventGroupHandle_t s_wifi_event_group;
+
+static int s_retry_num = 0;
+
+void event_handler(void* arg, esp_event_base_t event_base, int32_t event_id, void* event_data);
+
+void wifi_init_sta(void); \ No newline at end of file