With mbed BLE, we offer a growing set of SIG-defined BLE services implemented as C++ headers to ease application development. These can be found under the mbed OS API services folder.
But, we don’t expect you to settle for what has already been done; we expect you to develop applications for custom sensors and actuators, often outside the scope of the standard Bluetooth services or the service templates offered by mbed BLE. You can do this using the BLE_API. You may also find that you benefit from modelling your custom services as C++ classes for ease of use (and reuse).
Creating a BLE service may sound daunting, but we’ve created two templates that you can easily adapt to your needs: