Chat freely about anything...

User avatar
By PickyBiker
#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?
User avatar
By PickyBiker
#81128
rudy wrote:It does exist. Here is the link to the file. But if you want to see something then you will have to dig deeper.

https://github.com/esp8266/Arduino/blob ... 8266WiFi.h


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.
User avatar
By PickyBiker
#81143 This is now resolved (at least for knowing the WiFi functions. I found the=WiFi core documentation here:

https://arduino-esp8266.readthedocs.io/en/latest/index.html

I copied over the rest of the code library so I will never know why I was able to compile a sketch with an include file that did not exist on the PC.