I have connected my Arduino mega with an HC-05 and am trying to get it to communicate with an ESP32 through Bluetooth. I managed to connect the two and the ESP32 serial is able to receive data from the Arduino mega, but the mega is unable to receive data from the ESP. For the ESP32 code, I am using the example Bluetooth SerialToSerialBTM code. On the Arduino side, I am using software serial. I have tried different combinations of pins (2 & 3, 4 & 5) and it doesn't seem to make a difference. I also tried using hardware serial (pins TX1 and RX1) - the Arduino mega and ESP32 connected but didn't receive data from either.
I would appreciate and help or guidance to figure out the communication between the two.
The intention was asking for the Serial1 attempt but okey.
I doubt it's possible to use Software Serial on the UART port. Try other digital pins. Check with Arduino/reference regarding Serial.
The connection between the HC05 and the ESP32 (indicated by the blink pattern of the HC05) is independent from the Mega serial port communicating with the HC05.