User mini profile

- Wed Mar 13, 2019 1:58 pm#81094
I am trying the interactive example in the ESP8266 arduino library. There is a line in that sketch that reads #include <ESP8266WiFi.h>.

That file does not exist anywhere on my system, yet the sketch compiles just fine. If I comment that line out, it gives compile time errors. How is it possible to included a file that does not exist?

The reason I wanted to view the file was to learn what wifi routines exist. I looked in the ESP8266 library and the src directory just has a dummy file. Really can't figure out what is going on. More importantly, I don't know what routines are available. I can see from the example sketch wifi.begin, wifi.reconnect, WiFi.localIP(), etc. But I was hoping to see the full list of available wifi routines.

Can someone help me out with these questions?

First how is it possible to #include a file that does not exist on the PC?Second, where can I learn the full set of routines available with the ESP8266 library?

Thanks for the link, unfortunately I was not able to see the wifi routines I was hoping to find. Also, this file does not exist ON MY PC because the folder ESP8266WiFi was not copied over, just the folder ESP8266. So I still don't know how is it possible to successfully compile the sketch without that file? You might try renaming your ESP8266WiFi.h file and see if the example still compiles for you.