Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

Existing SDK Example for SDK 17.1.0 that shows dynamically adding BLE services?

Hi-

We have implemented a custom authentication scheme using BLE and based on a successful authentication event we would like to dynamically expose an additional set of GATT services.  Is there an existing SDK example that shows how we can do this?   Or is there a set of steps you would recommend to enable this type of functionality?

TIA,

Scot

  • Hello Scot,

    SoftDevice does not support adding GATT services dynamically. 

    Using the 'Service Changed' characteristic from GATT Service Client module will enable you to emulate adding GATT services dynamically, but it includes disabling and rebuilding the SoftDevice, which will lead to the authentication information (amongst other Bluetooth LE related properties) being removed.

    Best regards,

    Maria

Related