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

About Change UUID

Hello, I want to bring some data by UUID. I know the ble_nus_init() can set UUID and I know it was set by sd_ble_uuid_vs_add(). But this way only change the UUID while chip start up. If I want change UUID while it is working .How should I do? for example: I want to change UUID for every 5 minite without reset the chip.

Thank you for you reading my question and my English is pretty limited,please don't mine.

Parents
  • Hi,

    BLE GATT as implemented by Nordic Soft Device (stack) on nRF5x is not suited for dynamically changing ATT/GATT handles like this. So I'm afraid you can only set maximum ATT table size during Soft Device init and then be adding handles (this is what you mean by "UUIDs" I suppose) during run-time. However when you want to hide or delete some you will need to reset the chip and start from Soft Device init again.

    Cheers Jan

Reply
  • Hi,

    BLE GATT as implemented by Nordic Soft Device (stack) on nRF5x is not suited for dynamically changing ATT/GATT handles like this. So I'm afraid you can only set maximum ATT table size during Soft Device init and then be adding handles (this is what you mean by "UUIDs" I suppose) during run-time. However when you want to hide or delete some you will need to reset the chip and start from Soft Device init again.

    Cheers Jan

Children
Related