Arduino IDE and BLE

I am trying to use the Arduino IDE to create a sketch that will include data into a BLE advertisement. Are there any examples that may help me? I have used some that include basic information about the board, but I would like to be able to update a value, and sent that in the advertisement as well.

Thanks

Neil Kolban's documentation and libraries for the ESP32 are great. But you forgot to tell us what hardware you're using, so it may not be appropriate.

Pieter