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

Moderator: igrr

User avatar
By schufti
#66584 hmmm....
in the example I see

#include "ESP8266WiFi.h"

this - in the version I have on my PC - includes several depending headers

Code: Select all#include "IPAddress.h"

#include "ESP8266WiFiType.h"
#include "ESP8266WiFiSTA.h"
#include "ESP8266WiFiAP.h"
#include "ESP8266WiFiScan.h"
#include "ESP8266WiFiGeneric.h"

#include "WiFiClient.h"
#include "WiFiServer.h"
#include "WiFiClientSecure.h"



P.S.: I just did a quick copy/paste of the sample code and let it compile ==> no errors.
maybe your arduino / esp8266 installation is quirky. Sometimes updates of arduino (atmel) libraries interfere with esp8266 if the platform type in the lib is not set correctly; looks like updated arduino libs are first in search tree...
User avatar
By alex_g
#66587 Thanks very much for taking the trouble, schufti!

Well, I found my "ESP8266WiFi.h" ( I'm using Ubuntu) in
~/.arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/ESP8266WiFi/src
and it's exactly the same as yours.

"ESP8266WiFiScan.h" seems all present and correct, too.

I'd have no idea how to change the library search order, if that indeed is the problem.
Unfortunately, for now, I just don't have the time to mess with that stuff, so I'm OK just to use the regular network scan function as a workaround.
User avatar
By Cosmic Mac
#66906
alex_g wrote:Basically, I will be using MQTT to report on 433MHz signals from various physical locations. To do this, I need to be able to detect which WiFi networks are available, so that I can select the strongest.


Maybe you should have a look at WifiMulti:
https://github.com/esp8266/Arduino/blob ... iMulti.ino

I use it to get some of my ESPs easily connected at home or at work, without reconfiguring.
I even declared the SSID/pwd of my portable wifi router (I always have it in my bag, just in case ;)).