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()
561
561
_scanComplete = false ;
562
562
}
563
563
564
- int8_t ESP8266WiFiClass::scanNetworks (bool async)
564
+ int8_t ESP8266WiFiClass::scanNetworks (bool async, bool show_hidden )
565
565
{
566
566
if (ESP8266WiFiClass::_scanStarted) {
567
567
return WIFI_SCAN_RUNNING;
@@ -589,7 +589,7 @@ int8_t ESP8266WiFiClass::scanNetworks(bool async)
589
589
config.ssid = 0 ;
590
590
config.bssid = 0 ;
591
591
config.channel = 0 ;
592
- config.show_hidden = 0 ;
592
+ config.show_hidden = show_hidden ;
593
593
if (wifi_station_scan (&config, reinterpret_cast <scan_done_cb_t >(&ESP8266WiFiClass::_scanDone))) {
594
594
ESP8266WiFiClass::_scanComplete = false ;
595
595
ESP8266WiFiClass::_scanStarted = true ;
Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ class ESP8266WiFiClass
240
240
*
241
241
* return: Number of discovered networks
242
242
*/
243
- int8_t scanNetworks (bool async = false );
243
+ int8_t scanNetworks (bool async = false , bool show_hidden = false );
244
244
245
245
/*
246
246
* Return the SSID discovered during the network scan.
You can’t perform that action at this time.
0 commit comments