@@ -54,11 +54,13 @@ class STAClass : public NetworkInterface {
54
54
55
55
bool connect ();
56
56
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
57
58
bool connect (
58
59
const char *wpa2_ssid, wpa2_auth_method_t method, const char *wpa2_identity = NULL , const char *wpa2_username = NULL , const char *wpa2_password = NULL ,
59
60
const char *ca_pem = NULL , const char *client_crt = NULL , const char *client_key = NULL , int ttls_phase2_type = -1 , int32_t channel = 0 ,
60
61
const uint8_t *bssid = 0 , bool connect = true
61
62
);
63
+ #endif /* CONFIG_ESP_WIFI_ENTERPRISE_SUPPORT */
62
64
bool disconnect (bool eraseap = false , unsigned long timeout = 0 );
63
65
bool reconnect ();
64
66
bool erase ();
@@ -109,6 +111,7 @@ class WiFiSTAClass {
109
111
public:
110
112
STAClass STA;
111
113
114
+ #if CONFIG_ESP_WIFI_ENTERPRISE_SUPPORT
112
115
wl_status_t begin (
113
116
const char *wpa2_ssid, wpa2_auth_method_t method, const char *wpa2_identity = NULL , const char *wpa2_username = NULL , const char *wpa2_password = NULL ,
114
117
const char *ca_pem = NULL , const char *client_crt = NULL , const char *client_key = NULL , int ttls_phase2_type = -1 , int32_t channel = 0 ,
@@ -124,6 +127,8 @@ class WiFiSTAClass {
124
127
ttls_phase2_type, channel, bssid, connect
125
128
);
126
129
}
130
+ #endif /* CONFIG_ESP_WIFI_ENTERPRISE_SUPPORT */
131
+
127
132
wl_status_t begin (const char *ssid, const char *passphrase = NULL , int32_t channel = 0 , const uint8_t *bssid = NULL , bool connect = true );
128
133
wl_status_t begin (const String &ssid, const String &passphrase = (const char *)NULL, int32_t channel = 0, const uint8_t *bssid = NULL, bool connect = true) {
129
134
return begin (ssid.c_str (), passphrase.c_str (), channel, bssid, connect);
0 commit comments