Skip to content

Commit 0d28ca9

Browse files
authored
Update WiFiSTA.h
1 parent ff87516 commit 0d28ca9

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

libraries/WiFi/src/WiFiSTA.h

+6-4
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ class STAClass : public NetworkInterface {
5656
bool connect(const char *ssid, const char *passphrase = NULL, int32_t channel = 0, const uint8_t *bssid = NULL, bool connect = true);
5757
bool connect(
5858
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-
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
59+
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+
const uint8_t *bssid = 0, bool connect = true
6061
);
6162
bool disconnect(bool eraseap = false, unsigned long timeout = 0);
6263
bool reconnect();
@@ -110,16 +111,17 @@ class WiFiSTAClass {
110111

111112
wl_status_t begin(
112113
const char *wpa2_ssid, wpa2_auth_method_t method, const char *wpa2_identity = NULL, const char *wpa2_username = NULL, const char *wpa2_password = NULL,
113-
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
114+
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+
const uint8_t *bssid = 0, bool connect = true
114116
);
115117
wl_status_t begin(
116118
const String &wpa2_ssid, wpa2_auth_method_t method, const String &wpa2_identity = (const char *)NULL, const String &wpa2_username = (const char *)NULL,
117119
const String &wpa2_password = (const char *)NULL, const String &ca_pem = (const char *)NULL, const String &client_crt = (const char *)NULL,
118-
const String &client_key = (const char *)NULL, int32_t channel = 0, const uint8_t *bssid = 0, bool connect = true
120+
const String &client_key = (const char *)NULL, int ttls_phase2_type = -1, int32_t channel = 0, const uint8_t *bssid = 0, bool connect = true
119121
) {
120122
return begin(
121123
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(),
122-
channel, bssid, connect
124+
ttls_phase2_type, channel, bssid, connect
123125
);
124126
}
125127
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)