8000 fixed to just use default value params · Donderda/esp32-snippets@18a03f9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 18a03f9

Browse files
committed
fixed to just use default value params
1 parent 7e1cf23 commit 18a03f9

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

cpp_utils/WiFi.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,6 @@ void WiFi::setDNSServer(int numdns, ip_addr_t ip) {
145145
} // setDNSServer
146146

147147

148-
/**
149-
* @see WiFi::connectWithMode - this one defaults the mode to WIFI_MODE_AP
150-
*/
151-
uint8_t WiFi::connectAP(const std::string& ssid, const std::string& password, bool waitForConnection){
152-
return this->connectWithMode(ssid, password, waitForConnection, WIFI_MODE_AP);
153-
}
154-
155148
/**
156149
* @brief Connect to an external access point and specify the mode (WIFI_MODE_AP or WIFI_MODE_APSTA).
157150
*

cpp_utils/WiFi.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,7 @@ class WiFi {
130130
void setDNSServer(int numdns, ip_addr_t ip);
131131
struct in_addr getHostByName(const std::string& hostName);
132132
struct in_addr getHostByName(const char* hostName);
133-
uint8_t connectAP(const std::string& ssid, const std::string& password, bool waitForConnection=true);
134-
uint8_t connectWithMode(cons 4E89 t std::string& ssid, const std::string& password, bool waitForConnection, wifi_mode_t mode);
133+
uint8_t connectAP(const std::string& ssid, const std::string& password, bool waitForConnection=true, wifi_mode_t mode=WIFI_MODE_STA);
135134
void dump();
136135
bool isConnectedToAP();
137136
static std::string getApMac();

0 commit comments

Comments
 (0)
0