I tested this a some time ago and you can use the ArduinoBLE library. But I have not tried this since then.
Here is a link to a post that could be useful.
https://forum.arduino.cc/t/ble-arduino-esp32-which-library-should-i-use/893303/3
I tested this a some time ago and you can use the ArduinoBLE library. But I have not tried this since then.
Here is a link to a post that could be useful.
https://forum.arduino.cc/t/ble-arduino-esp32-which-library-should-i-use/893303/3