-->
Page 2 of 4

Re: List hidden AP

PostPosted: Tue Dec 15, 2015 12:02 pm
by Vincent Lê
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?

Re: List hidden AP

PostPosted: Tue Dec 15, 2015 12:16 pm
by martinayotte
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.

Re: List hidden AP

PostPosted: Tue Dec 15, 2015 1:06 pm
by Vincent Lê
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.

Re: List hidden AP

PostPosted: Tue Dec 15, 2015 1:27 pm
by martinayotte
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 ?