Skip to content

Commit 8b29790

Browse files
authored
add ttls_phase2_type
1 parent ee7a67f commit 8b29790

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

libraries/WiFi/src/WiFiSTA.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ class STAClass : public NetworkInterface {
5555
bool connect(const char *ssid, const char *passphrase = NULL, int32_t channel = 0, const uint8_t *bssid = NULL, bool connect = true);
5656
bool connect(
5757
const char *wpa2_ssid, wpa2_auth_method_t method, const char *wpa2_identity = NULL, const char *wpa2_username = NULL, const char *wpa2_password = NULL,
58-
const char *ca_pem = NULL, const char *client_crt = NULL, const char *client_key = NULL, int32_t channel = 0, const uint8_t *bssid = 0, bool connect = true
58+
const char *ca_pem = NULL, const char *client_crt = NULL, const char *client_key = NULL, int ttls_phase2_type = -1, int32_t channel = 0,
59+
const uint8_t *bssid = 0, bool connect = true
5960
);
6061
bool disconnect(bool eraseap = false, unsigned long timeout = 0);
6162
bool reconnect();
@@ -109,16 +110,17 @@ class WiFiSTAClass {
109110

110111
wl_status_t begin(
111112
const char *wpa2_ssid, wpa2_auth_method_t method, const char *wpa2_identity = NULL, const char *wpa2_username = NULL, const char *wpa2_password = NULL,
112-
const char *ca_pem = NULL, const char *client_crt = NULL, const char *client_key = NULL, int32_t channel = 0, const uint8_t *bssid = 0, bool connect = true
113+
const char *ca_pem = NULL, const char *client_crt = NULL, const char *client_key = NULL, int ttls_phase2_type = -1, int32_t channel = 0,
114+
const uint8_t *bssid = 0, bool connect = true
113115
);
114116
wl_status_t begin(
115117
const String &wpa2_ssid, wpa2_auth_method_t method, const String &wpa2_identity = (const char *)NULL, const String &wpa2_username = (const char *)NULL,
116118
const String &wpa2_password = (const char *)NULL, const String &ca_pem = (const char *)NULL, const String &client_crt = (const char *)NULL,
117-
const String &client_key = (const char *)NULL, int32_t channel = 0, const uint8_t *bssid = 0, bool connect = true
119+
const String &client_key = (const char *)NULL, int ttls_phase2_type = -1, int32_t channel = 0, const uint8_t *bssid = 0, bool connect = true
118120
) {
119121
return begin(
120122
wpa2_ssid.c_str(), method, wpa2_identity.c_str(), wpa2_username.c_str(), wpa2_password.c_str(), ca_pem.c_str(), client_crt.c_str(), client_key.c_str(),
121-
channel, bssid, connect
123+
ttls_phase2_type, channel, bssid, connect
122124
);
123125
}
124126
wl_status_t begin(const char *ssid, const char *passphrase = NULL, int32_t channel = 0, const uint8_t *bssid = NULL, bool connect = true);

0 commit comments

Comments
 (0)