Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By Vincent Lê
#36493 Thanks a lot.
Now I'm able to list APs, and what I guessed was unfortunately right: the WiFi.scanNetworks() function only scan the APs with a SSID.
In my list, all of the AP have a isHidden=0 in WiFi.getNetworkInfo(n, ssid, encryptionType, RSSI, BSSID, channel, isHidden);
And of course there are some hidden APs, I have an android app listing them.

Is there a solution?
User avatar
By martinayotte
#36495 Oh !!!
since I don't have any hidden AP, I've never pointed that scanNetwork() was skipping them.
It is maybe a bug in Espressif SDK ... :-(

EDIT : Looking again at ESP8266WiFi.cpp, the scanNetwork() initialize the scsan_config passed to SDK with "config.show_hidden = 0;", so maybe it is an ArduinoESP issue.
Try to change it with "config.show_hidden = 1;", if it work, then we will need to add an argument to the method to allow both possibilities.
User avatar
By Vincent Lê
#36500 Ah, this should be the right direction!
Unfortunately, I am a newbie with Arduino IDE.

When I write this line:
Code: Select all#include <ESP8266WiFi.h>


which file does Arduino load?

I have no "ESP8266Wifi.h" file on my computer.
User avatar
By martinayotte
#36502 Did your search was case sensitive ? because it is WiFi not Wifi ... ;)
The file should be in .arduino15/packages/esp8266/hardware/esp8266/2.0.0-rc2/libraries/ESP8266WiFi/src/ESP8266WiFi.h
Did you ever installed the ESP package ?