Something unusual about #include <ESP8266WiFi.h>
Posted: Wed Mar 13, 2019 1:58 pm
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?
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?