Skip to content

Commit 3706fcf

Browse files
authored
guard WIFI_ENTERPRISE_SUPPORT
1 parent 5e93ab6 commit 3706fcf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: libraries/WiFi/src/WiFiSTA.h

+4
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,13 @@ class STAClass : public NetworkInterface {
5454

5555
bool connect();
5656
bool connect(const char *ssid, const char *passphrase = NULL, int32_t channel = 0, const uint8_t *bssid = NULL, bool connect = true);
57+
#if CONFIG_ESP_WIFI_ENTERPRISE_SUPPORT
5758
bool connect(
5859
const char *wpa2_ssid, wpa2_auth_method_t method, const char *wpa2_identity = NULL, const char *wpa2_username = NULL, const char *wpa2_password = NULL,
5960
const char *ca_pem = NULL, const char *client_crt = NULL, const char *client_key = NULL, int ttls_phase2_type = -1, int32_t channel = 0,
6061
const uint8_t *bssid = 0, bool connect = true
6162
);
63+
#endif /* CONFIG_ESP_WIFI_ENTERPRISE_SUPPORT */
6264
bool disconnect(bool eraseap = false, unsigned long timeout = 0);
6365
bool reconnect();
6466
bool erase();
@@ -109,11 +111,13 @@ class WiFiSTAClass {
109111
public:
110112
STAClass STA;
111113

114+
#if CONFIG_ESP_WIFI_ENTERPRISE_SUPPORT
112115
wl_status_t begin(
113116
const char *wpa2_ssid, wpa2_auth_method_t method, const char *wpa2_identity = NULL, const char *wpa2_username = NULL, const char *wpa2_password = NULL,
114117
const char *ca_pem = NULL, const char *client_crt = NULL, const char *client_key = NULL, int ttls_phase2_type = -1, int32_t channel = 0,
115118
const uint8_t *bssid = 0, bool connect = true
116119
);
120+
#endif /* CONFIG_ESP_WIFI_ENTERPRISE_SUPPORT */
117121
wl_status_t begin(
118122
const String &wpa2_ssid, wpa2_auth_method_t method, const String &wpa2_identity = (const char *)NULL, const String &wpa2_username = (const char *)NULL,
119123
const String &wpa2_password = (const char *)NULL, const String &ca_pem = (const char *)NULL, const String &client_crt = (const char *)NULL,

0 commit comments

Comments
 (0)