We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 411af08 commit b9163e5Copy full SHA for b9163e5
libraries/WiFi/src/WiFi.cpp
@@ -213,13 +213,13 @@ int arduino::WiFiClass::setSSID(const char* ssid) {
213
214
int8_t arduino::WiFiClass::scanNetworks() {
215
connected_ap = SSID_MAX_COUNT;
216
- uint8_t count = SSID_MAX_COUNT;
217
if (ap_list != nullptr) {
218
delete[]ap_list;
219
ap_list = nullptr;
220
}
221
- ap_list = new WiFiAccessPoint[count];
222
- return wifi_if->scan(ap_list, count);
+
+ ap_list = new WiFiAccessPoint[SSID_MAX_COUNT];
+ return wifi_if->scan(ap_list, SSID_MAX_COUNT);
223
224
225
char* arduino::WiFiClass::SSID(uint8_t networkItem) {
0 commit comments