Example of sending string through BLE

I have a app that I am creating to control a esp32 with LED. Very simple setup. I need to find some sample code or app source that will send a TEXT string "ON" or "OFF" to the BLE device to control the LED.