It is required to keep everything working exacly the same, with the only difference being that I'd like the code to use BLE, meaning any line of code related to BT Classic has to be replaced with its BLE equivalent (which is a bit over me atm, even after reading through the BLE examples available publicly).
Here is my code:
I tried replacing some code lines with BLE related lines but the callbacks started giving errors, especially after getting rid of the
BluetoothSerial SerialBT; line.
If anyone can help me with the process it'd be awesome. I'm trying to make the device compatible with both Android and iOS, the reason behind the conversion, as of right now it only works with Android OS and I can't test it on iOS devices.
ESP32_BLE_Arduino/examples at master · nkolban/ESP32_BLE_Arduino · GitHub