Go Down

Topic: Installing WiFi library (Read 514 times) previous topic - next topic

muscipula

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

pert

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.

muscipula

Actually I'm talking about the ESP8266WIFI library. It's there in the master but cannot figure out installing it.

Andrue

Juraj

that is the part of the esp8266 core. instructions

pert

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.

muscipula

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?


Juraj


muscipula

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

Juraj

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


pert

ESP8266
I have a library that fails to compile with the error 'Esp8266wifi.h header file not found.
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).

Quote
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.

muscipula

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

pert

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:
https://www.arduino.cc/en/Reference/SPI
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:
https://www.arduino.cc/en/Tutorial/LibraryExamples#spi

muscipula

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


muscipula

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

Go Up