This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
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

Sample code for sd_ble_gatts_service_changed

We have a DFU which uses a different set of of services than the main app. Both of them share bonding information which is create by our main app. Once we switch to DFU after the device is bonded, ios always returns invalid handle when we query one if the service provided by both DFU and main app. We try to use sd_ble_gatts_service_changed to force ios refresh the gap table, however not sure how to do this from Nordic side.

Thank you, Chaowen

Parents
  • I am currently having the same issue. I have read elsewhere that people use service_changed, but I can't seem to implement it properly. Thus, I am left looking for help as well.

    EDIT: I had received a very nice answer from a support case I opened and forgot to post my results here.

    I was pointed to this link as an explanation and offered two options.

    • Integrate the bootloader into your app
    • Or you can just change the address of the device when running in bootloader mode.

    I went the route of creating a random address for the device when in bootloader mode and this solved my issues.

  • Thank you for editing your answer to make it as good as possible.

Reply Children
No Data
Related