Go Down

Topic: Arduino Wifi ESP8266 error (Read 301 times) previous topic - next topic

rjrajbir

Hi, I am trying to connect an Arduino UNO using esp2866 to my home router and I am getting this error

C:\Users\john-\Documents\Arduino\newww\newww.ino:2:25: fatal error: ESP8266WiFi.h: No such file or directory #include
^ compilation terminated. exit status 1 Error compiling for board Arduino/Genuino Uno.

Riva

From what you have posted it it looks like your trying to upload native ESP8266 code to an Arduino UNO.
Depending on what the UNO is expected to do you might be able to just use an ESP8266 module programmed by the Arduino IDE using the ESP8266 core or you may need to use the UNO to talk to the ESP8266 that is running it's own AT command core .
Don't PM me for help as I will ignore it.

DrAzzy

That's the wrong library for using ESP8266 to provide WiFi functionality to an Uno or other non-wifi enabled microcontroller - that's the one for when you're uploading code direct to an ESP8266.

I don't know off the top of my head what the library you need is (but if you're basing your code on example code that uses that library, it was written for the ESP8266, not another microcontroller using the ESP8266 for WiFi connectivity)
ATtiny core for 841+1634+828 and x313/x4/x5/x61/x7/x8 series Board Manager:
http://drazzy.com/package_drazzy.com_index.json
ATtiny breakouts (some assembled), mosfets and awesome prototyping board in my store http://tindie.com/stores/DrAzzy

cattledog

Quote
you may need to use the UNO to talk to the ESP8266 that is running it's own AT command core .
For this you want WiFiEsp by bportaluri.

The WiFiEsp library simplifies the control of ESP8266 modules running the AT command core by an Arduino by hiding the AT commands behind the standard API used in the official WiFi and Ethernet libraries




Go Up