How Connect HC-05 Bluetooth to ESP32 ???

Hi all
I want sample for connect HC-05 to ESP32 with Bluetooth ( send and receive data )

Why would you do that, since the ESP32 already has built-in BT.
Leo..

Perhaps, by "connect", it's meant to pair & connect an HC-05 with the ESP32_BT.

runaway_pancake:
Perhaps, by "connect", it's meant to pair & connect an HC-05 with the ESP32_BT.

yes. you right.
I want pair HC-05 to ESP32 with Bluetooth

Wawa:
Why would you do that, since the ESP32 already has built-in BT.
Leo…

I have an Arduino board and ESP32. I want pair HC-05 to ESP32. Because this two board they are far apart

The ESP32 will pair & connect with 'anything', it shows up as ESP32test (at least, mine does).

runaway_pancake:
The ESP32 will pair & connect with 'anything', it shows up as ESP32test (at least, mine does).

I did not understand what you meant , can you explain more???
Can you give me a sample code???

Maybe this example can help:
ESP32 Bluetooth Classic with Arduino IDE – Getting Started