As far as I know esp8266 base library (GitHub - esp8266/Arduino: ESP8266 core for Arduino) are automatically included on platform = espressif8266, but megaatmega2560 board are not supported on platform espressif8266. Is there any way to use esp8266 base library with megaatmega2560 board?
I want to use a library written for the ESP8266 on the ATmega, because I’m using ESP8266 module with arduino mega, not programming ESP8266 as an independent platform, here is a connection sketch between arduino and ESP8266 to explain what I mean
Above schematic will destroy the ESP8266 because you’re putting in 5V levels from the Mega’s TX pin to the 3.3V device that is the ESP8266. You must use a voltage divider to convert the voltage.
Thanks for this question, because your question I began looking for the ESP8226 modules, all this time I’m only using ESP-01 and what I know that very device are what every people call ESP8266, turns out there are a few type.
Eh sorry I was missing the word “library” here. But anyways yeah, you might find working with a NodeMCU (ESP-12F) way more confortable and might not actually need the Mega at all depending on your application.