Hello everyone
Would someone please explain how to install the WiFi library. I downloaded the archive - all 19MB - but there are no clear instructions.
I'm using the Windows version of the Arduino IDE.
Andrue
Hello everyone
Would someone please explain how to install the WiFi library. I downloaded the archive - all 19MB - but there are no clear instructions.
I'm using the Windows version of the Arduino IDE.
Andrue
The standard version of the WiFi library is included with the Arduino IDE so you don't need to install it. You can find example sketches for it at File > Examples > WiFi.
If you're talking about a different WiFi library then please post a link to where you downloaded it from.
Actually I'm talking about the ESP8266WIFI library. It's there in the master but cannot figure out installing it.
Andrue
that is the part of the esp8266 core. instructions
Please explain exactly what you're trying to accomplish. Typically when we get a question like this there's a fundamental misunderstanding of the purpose of the ESP8266WiFi library behind it.
I have a library that fails to compile with the error 'Esp8266wifi.h header file not found..
The archive consists of a lot of ESP8266 libraries with no clear method of how to install.
If I attempt to install as a zip the IDE says not valid library. If I unpack the libraries into my sketch libraries directory another problem., one library looks for queue..h which is in the tools directory.
Your documentation mentions building the source using the make file. How is this done in Windows?
again
ATM I am interested in communicating with ESP8266 via SPI, then the next step ESP8266 to ESP8266.
I have found a library that talks in E1.31 which requires ESP8266WiFi.h.
It's that straightforward actually and I spent a few hours last night trying to fathom the "instructions".
How many ways are there to install a library?
Andrue
muscipula:
How many ways are there to install a library?
it is not a library. it is a platform. Everything to write and build sketches for the esp8266 in Arduino IDE
ESP8266
muscipula:
I have a library that fails to compile with the error 'Esp8266wifi.h header file not found.
muscipula:
I have found a library that talks in E1.31 which requires ESP8266WiFi.h.
Is it Esp8266wifi.h or ESP8266WiFi.h? ESP8266WiFi.h is part of the ESP8266 core for Arduino, with instructions the Juraj provided but confusingly enough there is a completely different library with the file ESP8266wifi.h (note the different capitalization).
it is not a library. it is a platform.
The ESP8266WiFi library is bundled with the ESP8266 core for Arduino and requires that core. You need the whole core, the library by itself won't be useful. Note this is for directly programming the ESP8266.
Thanks for that I shall RTFM. In the meantime seeing às I want to use ESP8266 devices with SPI are there example sketches or libraries that demonstrate this?
TIA
Andrue
The ESP8266 core for Arduino does include an SPI library. There's some minimal documentation here:
https://arduino-esp8266.readthedocs.io/en/latest/libraries.html#spi
Typically the libraries will have a similar API to the standard Arduino libraries so this also might be useful:
For some reason they didn't bother to include any example sketches with the ESP8266 library but you can find the examples for the standard SPI library here:
I suspect I know where the confusion has been lying. Am I correct in believing an Internet connection is required as it seems three of the instalation options expect it.
I never put my work machines online.
The make option seems possible and I am familiar with make but how do I invoke the compiler?
AndRue
Are you trying to install the ESP8266 core for Arduino?
Yes I am. The options I have to install the libraries insist on an Internet connection. Also the libraries are there in the archive, why can't I install offline?
I did copy the contents of the libraries folder into the sketch/libraries folder to find a header file - queue.h - which ESP8266WIFI needs is in tools.
Is it possible to manually install?
Andrue
I simply want to send AT to the ESP8266 and receive OK. If it does then I will be a happy bunny.
Andrue
The Arduino IDE supports portable operation which might help. Portable means all the Arduino files will be installed in a drive/directory that is on a removable USB drive or SD card. The idea is to install the Arduino IDE on a removable drive plugged into a PC with Internet access. Install the ESP8266 board package and libraries from the Internet. Unplug the USB or SD device then plug it into the PC without Internet access.
As for AT commands, it depends whether the factory burned in the AT command firmware or not. The ESP12s I have checked came with the NodeMCU Lua firmware. ESP01s came with AT firmware installed. I usually burn firmware with the Arduino IDE without checking so you mileage may vary.
It is possible to burn AT firmware into any ESP. See the Espressif site for the latest.
muscipula:
The options I have to install the libraries insist on an Internet connection. Also the libraries are there in the archive
Stop calling it "libraries". That's just going to confuse things. It's much more than libraries, it's also hardware definitions and a complete toolchain (compiler and uploader) for the ESP8266. Without the latter two the libraries are useless.
muscipula:
why can't I install offline?
The files are on the Internet. How are you going to download them?
muscipula:
Is it possible to manually install?
Yes, but it requires creating a very specific folder structure and is fairly complicated. The easiest way is to install the package on an online computer and then copy it over to the offline computer.
muscipula:
I simply want to send AT to the ESP8266 and receive OK. If it does then I will be a happy bunny.
Then you're using the ESP8266 as a WiFi module running the AT firmware and all this talk about the ESP8266 core for Arduino and the ESP8266WiFi library is completely irrelevant. It's time for you to stop wasting our time and explain exactly what you're trying to accomplish.
Yes, but it requires creating a very specific folder structure and is fairly complicated.
I would think 19MB is complicated with a considerable directory structure.
Anyway I shall try installing on one of my online machines.
Nevertheless you could be civil once in a while.
Andrue
Andrue, you are not on the path to AT commands. With esp8266 you can write arduino sketches for the esp8266. ones that actually run in the esp. but you want to run the AT firmware in the esp.