How to add add, insert and remove BLE services dynamically at run time and if I have to send multiple data under one service

if I have to send multiple data under one service 

like: Service 1(Information)

Hardware Revision String

Model Number String, the

Regulatory Certification Data List 

Then what should be the proper format (like string, array, individually or something else) of sending data? 

Parents Reply
  • Hi again, 
    If you use nRF5 SDK and softdevice, then it's not possible to remove a BLE service. You can add more service after initializing the softdevice but you can not remove. 
    If you want to remove a service/characteristic you would need to disable softdevice and initialize it again. 

    When you add more service/characteristic, you need to request the peer to do a new service discovery to update the new service/characteristic. 

Children
Related