Hi,
I am working through a sample project using an AI Thinker esp8266 board connected to Mega 2560. I am using IDE 2.
I installed the ESP8266 Library from the ESP8266 Community and I am trying to use the WiFiScan example.
I use the BoardManager and select the esp8266 and choose the generic ESP8266 board. I then compile the code no problem.
However I need to upload this code to the Mega 2560. I use the board manager to choose the AVR board and select the Mega 2560 and click the Upload button which tries to recompile the code but now it fails on finding the ESP8266WIFI header files.
What am I doing wrong? I appreciate any assistance.
Ken
Trying to upload a code to the wrong board.
You can't (and shouldn't) upload ESP8266 code to the Mega.
That code and library are not compatible with the Mega. The Mega does not have WiFi.
What is the Mega to do? Can you do it all with the ESP with some added hardware to increase GPIO pin count?
Please describe you overall project.
A schematic would be helpful.
The library I tried to use was not compatible with the esp8266 brd I am using.
Thank you for pointing me in the right direction!
Best regards,
Ken
Try to find a library made for esp...
Or let us know which functionality you need and which incompatible library you have. Maybe there is a quick fix.
Please explain - if you use the library for ESP8266 and compile it for ESP8266 - why do you need to upload the code to Mega???
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.