changed to overload

This commit is contained in:
2025-12-17 13:15:55 -06:00
parent d6dfa5d681
commit 3f099996e8
2 changed files with 3 additions and 3 deletions

View File

@@ -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;

View File

@@ -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();