Any of the examples using the ArduinoBLE library should work.
https://github.com/arduino-libraries/ArduinoBLE