Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Modify BLE_CONN_CFG_GAP After Enabling Soft Device?

Is it possible to modify BLE_CONN_CFG_GAP after the softdevice has been enabled?  I want to be able to set the event length on start up based on a setting stored in flash with FDS, but I can't use FDS until the softdevice is enabled since FDS uses the soft device back end.  If it can't be modified after the softdevice is enabled would the best solution be to enable the softdevice, read the setting, disable the softdevice and then re-enable it with the updated setting?

Parents
  • FormerMember
    +1 FormerMember

    Short answer: Yes!

    Setting up/ initializing the softdevice consists of the following:

    Enabling the softdevice: sd_softdevice_enable()

    Configuring the BLE settings: sd_ble_cfg_set()

    Enabling BLE in the softdevice: sd_ble_enable()

     

    From the documentation for sd_ble_cfg_set(): sd_ble_cfg_set may be called at any time when the SoftDevice is enabled (see @ref
    sd_softdevice_enable) while the BLE part of the SoftDevice is not enabled (see @ref sd_ble_enable).

     

Reply
  • FormerMember
    +1 FormerMember

    Short answer: Yes!

    Setting up/ initializing the softdevice consists of the following:

    Enabling the softdevice: sd_softdevice_enable()

    Configuring the BLE settings: sd_ble_cfg_set()

    Enabling BLE in the softdevice: sd_ble_enable()

     

    From the documentation for sd_ble_cfg_set(): sd_ble_cfg_set may be called at any time when the SoftDevice is enabled (see @ref
    sd_softdevice_enable) while the BLE part of the SoftDevice is not enabled (see @ref sd_ble_enable).

     

Children
No Data
Related