Trigger camera esp32 with Arduino mega2560

I have a mega 2560 were I use 28 of the pins for digital in and out, the board have a Ethernet module.
Commands are comming to the board via http commands. When a command is received a digital out is send to a pin at that same time I would like to trigger the esp32 camera to take a picture, but I need to make the image with the date time and the pin number and then send the image to a webserver.
Is there anyway I can communicate with esp32 via the tx and rx or should I get a Bluetooth module for the mega 2560 and communicate with the esp32.

If there is a better way let me know, thanks.
If there is any example out there please post the links.

Thanks for any help.
KimHJ

if your mega and esp32 cam inside same box, you don't need a bluetooth.
you can communicate through serial (rx/tx) comunication

mega2560 had 4 serial comunnication
Serial0(TX0/RX0) already used by ethernet shield,
use Serial1(TX1/RX1) to communicate with ESP32cam

Thanks. Do you know of any examples using the tx/rx to communicate with esp32?

kimhj50:
Thanks. Do you know of any examples using the tx/rx to communicate with esp32?

here is a project with the same vibe,

https://www.instructables.com/Capture-Send-Images-With-ESP32-Cam-Using-ESP8266-W/

Thanks, but it does not show how to use tx/rx to get the image from the esp32.