Sending data from ESP8266 back to Arduino

Hello, it's me again,
I need some advice on an Arduino MEGA+WiFi ATmega2560+ESP8266 4Mb CH340G board. As I addressed in the last thread, I use the ATmega2560 to take readings from the sensors and send the data via serial communication (Serial3) to the ESP8266 where I print it to the web interface and the user can view and monitor the data. I also have a button on the web to open the door, but here is the problem. How can I send the data from the ESP back to the Arduino to trigger the motor to open the gate? In other words, when the user clicks the "Open Gate" button on the web interface, how can I send the information to the Arduino to trigger the motor to open? Does this board have any common RX and TX pins so I can use SoftwareSerial.h to create a virtual serial port to send data through or is there another solution?

Thank you in advance.

through Serial3 and send

I can't use Serial3 for ESP because ESP has only one Serial.

ESP8266(Serial) TX to Mega2560(Serial3) RX

I understand now, so I can send data from ESP via Serial and use Serial3 to receive it on Arduino. Thanks.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.