Peter
3
I don't know what ESP32-C3 you have, but would you be willing to take another path?
You could use this extension that makes it really easy to work with BLE.
You would have to use MicroBlocks to program your ESP32-C3.
I use it almost on a daily basis and the combination is very powerful.