This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Dynamically add, insert and remove BLE services at run time using s140

Hi there,

I was just wondering whether the s140 supports adding, inserting and removing BLE service and characteristics at run time. if yes, what should I pay attention to when doing so? 

Thanks in advance!

Parents Reply
  • Hi

    The thread developers confirmed my suspicion. 

    If you disable the SoftDevice without first disabling the thread stack then the stack will crash. 

    You should be able to disable the thread stack first, then disable the SoftDevice, change the services, and then re-enable everything, but this will be a quite slow process. 

    If you can accept to drop out of the thread-network for several minutes it might be an acceptable solution.

    Best regards
    Torbjørn

Children
Related