File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
libraries/ESP8266WiFi/src Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -561,7 +561,7 @@ void ESP8266WiFiClass::scanDelete()
561561 _scanComplete = false ;
562562}
563563
564- int8_t ESP8266WiFiClass::scanNetworks (bool async)
564+ int8_t ESP8266WiFiClass::scanNetworks (bool async, bool show_hidden )
565565{
566566 if (ESP8266WiFiClass::_scanStarted) {
567567 return WIFI_SCAN_RUNNING;
@@ -589,7 +589,7 @@ int8_t ESP8266WiFiClass::scanNetworks(bool async)
589589 config.ssid = 0 ;
590590 config.bssid = 0 ;
591591 config.channel = 0 ;
592- config.show_hidden = 0 ;
592+ config.show_hidden = show_hidden ;
593593 if (wifi_station_scan (&config, reinterpret_cast <scan_done_cb_t >(&ESP8266WiFiClass::_scanDone))) {
594594 ESP8266WiFiClass::_scanComplete = false ;
595595 ESP8266WiFiClass::_scanStarted = true ;
Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ class ESP8266WiFiClass
240240 *
241241 * return: Number of discovered networks
242242 */
243- int8_t scanNetworks (bool async = false );
243+ int8_t scanNetworks (bool async = false , bool show_hidden = false );
244244
245245 /*
246246 * Return the SSID discovered during the network scan.
You can’t perform that action at this time.
0 commit comments