changed to overload
This commit is contained in:
@@ -117,7 +117,7 @@ bool WiFi::attemptConnect(char *SSID, char *PW, wifi_auth_mode_t authMode) {
|
|||||||
return awaitConnected();
|
return awaitConnected();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool WiFi::attemptConnectEnterprise(char *SSID, char *username, char *PW, wifi_auth_mode_t authMode) {
|
bool WiFi::attemptConnect(char *SSID, char *username, char *PW, wifi_auth_mode_t authMode) {
|
||||||
std::string ssid = SSID;
|
std::string ssid = SSID;
|
||||||
std::string uname = username;
|
std::string uname = username;
|
||||||
std::string password = PW;
|
std::string password = PW;
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ class WiFi {
|
|||||||
public:
|
public:
|
||||||
static void init();
|
static void init();
|
||||||
static bool attemptConnect(char *SSID, char *PW, wifi_auth_mode_t authMode);
|
static bool attemptConnect(char *SSID, char *PW, wifi_auth_mode_t authMode);
|
||||||
static bool attemptConnectEnterprise(char *SSID, char *username,
|
static bool attemptConnect(char *SSID, char *username, char *PW,
|
||||||
char *PW, wifi_auth_mode_t authMode);
|
wifi_auth_mode_t authMode);
|
||||||
private:
|
private:
|
||||||
static bool authFailed;
|
static bool authFailed;
|
||||||
static bool awaitConnected();
|
static bool awaitConnected();
|
||||||
|
|||||||
Reference in New Issue
Block a user