ESP32 Bluetooth

Does any one know how to connect a HC-05 bluetooth module to an ESP32?
I know the ESP has its own internal bluetooth but this utilises 70% of the ESP32 memory and I do not have that available. So theoretically I should be able to use one of the UART's to send data to the HC-05, but how. thanks

Try to use ESP32 NimBLE Stack.
this uses less code space

I haven't used an ESP but Iexpect you could use software serial(there's a library) and use two digital pins connected to the HC-05. That's what I do with Arduino boards.

Thanks F3John, I had a look at NimBle stack and I think it goes way beyond my programming knowledge

Thanks NissanCedric I will have a look