Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to add IS_SRVC_CHANGED_CHARACT_PRESENT to app

Hi,

I'm running into issues where iOS is caching the handles. I found out that I need to set IS_SRVC_CHANGED_CHARACT_PRESENT to 1.

But where should I do that? In sdk_config.h?

The solution contains no references to this define, so how does setting it change anything for my application? Or is there more I need to add to add the service changed char?

Thanks in advance.

Kind regards,

Remco Poelstra

Parents
  • Hi,

    iOS will cache your attribute table in case you do not use bonding and the service changed characteristic is missing.

    Unfortunately not all projects has all setting sin the sdk_config file. But you should be able to find this in sdk_config In many projects:

    #ifndef NRF_SDH_BLE_SERVICE_CHANGED
    #define NRF_SDH_BLE_SERVICE_CHANGED 0
    #endif

    , i.e. The ANCS client.and others. There is also an option to handle service changed notification in PM for bonded devices. To use that you need to enable:

    #ifndef PM_SERVICE_CHANGED_ENABLED
    #define PM_SERVICE_CHANGED_ENABLED 0
    #endif

Reply
  • Hi,

    iOS will cache your attribute table in case you do not use bonding and the service changed characteristic is missing.

    Unfortunately not all projects has all setting sin the sdk_config file. But you should be able to find this in sdk_config In many projects:

    #ifndef NRF_SDH_BLE_SERVICE_CHANGED
    #define NRF_SDH_BLE_SERVICE_CHANGED 0
    #endif

    , i.e. The ANCS client.and others. There is also an option to handle service changed notification in PM for bonded devices. To use that you need to enable:

    #ifndef PM_SERVICE_CHANGED_ENABLED
    #define PM_SERVICE_CHANGED_ENABLED 0
    #endif

Children
Related