main/config.h

branch
idf 5.1
changeset 138
eab1b7c07cdf
parent 137
e0f50087c909
child 142
1f7069278fe7
--- a/main/config.h	Fri Jun 28 15:33:24 2024 +0200
+++ b/main/config.h	Sat Jun 29 13:33:57 2024 +0200
@@ -36,7 +36,13 @@
 #include "esp_netif.h"
 #include "esp_mac.h"
 #include "esp_wifi.h"
+
+#if ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 2, 0)
 #include "esp_wpa2.h"
+#else
+#include "esp_eap_client.h"
+#endif
+
 #include "esp_event.h"
 #include "esp_timer.h"
 #include "esp_ota_ops.h"

mercurial