This section covers some BLE and mbed concepts in greater detail.
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’s already been done; we expect you to develop applications for custom sensors and actuators,. These will often fall outside the scope of the standard Bluetooth services or the service templates offered by mbed BLE. In this case, you could use the
BLE_API. You may also find that you benefit from modelling your custom services as C++ classes for ease of use (and reuse). Here, we’d like to capture the process of creating a BLE service.
Creating a BLE service may sound scary, but we’ve created two templates that you can easily adapt to your needs:
Reviewing advanced features of standard implementations:
The UriBeacon: dynamic configuration of the UriBeacon on start up and configuration persistence.
Creating an app for high data rate, low latency transfers, if you need to transfer large amounts of data.
Firmware Over the Air
Reviewing Firmware Over the Air (FOTA):