@@ -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,11 +111,13 @@ 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 ,
115
118
const uint8_t *bssid = 0 , bool connect = true
116
119
);
120
+ #endif /* CONFIG_ESP_WIFI_ENTERPRISE_SUPPORT */
117
121
wl_status_t begin (
118
122
const String &wpa2_ssid, wpa2_auth_method_t method, const String &wpa2_identity = (const char *)NULL, const String &wpa2_username = (const char *)NULL,
119
123
const String &wpa2_password = (const char *)NULL, const String &ca_pem = (const char *)NULL, const String &client_crt = (const char *)NULL,
0 commit comments