Arduino MEGA + ESP8266

Hello all,
I am making a project that requires server communication to send basic number and some text to and from a server to an arduino mega. I have an ESP8266 board and also a HC-05 board. If i use the ESP8266 board, how would i do get/post requests and make it so that my code installs and runs on the arduino and NOT the ESP8266. Additionally, would I select an arduino MEGA or a "generic esp8266 board" in my IDE? Sorry, i'm new to this lmao.

As far as your last sentence, you select whatever is connected to the IDE.
Your question makes no sense, daw a simple block diagram of what you want.

i want to send data to and from a web server to an arduino using an esp8266 as the means of connecting to the wifi. Is there an SDK or documentation on how to do this. That is all I am asking.

So you want to have an 8266 connect to a webserver to collect some data and then send it to an arduino? No SDK, the documentation is in this site, just go to root then select.

https://github.com/JAndrassy/WiFiEspAT?tab=readme-ov-file#getting-started

oh i see where i miscommunicated, mb. The arduino collects the data and then I would like to use the ESP8266 to send it to the webserver and also collect the returned data. Consider the ESP8266 like a middleman.

Is there a reason to use the 8266, why not just have the Arduino send the data to the webserver?
If you spoke in requirements terms rather than solutions, you might get better help.

1 Like

I use serial communication between an ATmega1284 and an ESP-01. The ESP-01 has a web server that talks to the browser and converts the data to/from the serial interface with the ATmega. You need to write code for both and upload code to them individually.

This was for a legacy situation where the ATmega was in place and originally used a USB to serial interface. We updated to a web interface with an ESP-01. If I were starting today I would use just an ESP32 and put it all on one processor.

1 Like

He can choose from a few boards, but so far he has not given us his requirements, like a lot of untrained folks, he gives us a solution that may or may not be the ideal solution rather than requirements, OR it's homework which I don't do.