This repository contains example codes that can be used as templates for your BLE project with the ESP32 board. All these examples have been explained this video.
For the client app on your smartphone, I recommend using the nRF connect app. The examples BLE_switch and BLE_everything_to_string look best on the custom app available here.