This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2755R10: Use of "Service changed"

Part Number: CC2755R10


Tool/software:

Hello expert,

1. CC2755R10 can support "Service changed" ?

    Our customer wants to change the GATT service and characteristics.

2. If above is possible,  Is it required to disconnect the BLE connection to use the "Service Changed"?

Regards,

A.Fujinaka

  • Hi !

    The F3 SDK API does not expose any function that allows to add one single characteristic. However it allow to add and remove entire services, by using the functions GATTServApp_RegisterService and GATTServApp_DeregisterService. These functions do not require the user to disconnect the BLE connection, but it does need a way to inform the central that the services have changed.

    This can be done by using the service changed characteristic. The peripheral would change its GATT Services with the API functions mentioned above, and then send an indication to the service changed characteristic to inform the central. The central then needs to re-discover the GATT table, just as it does currently in the customer's firmware.

    Kind regards,
    Maxence

  • Hello Maxence,

    I understand that the F3 SDK API does not expose any function that allows to add one single characteristic

    So,  is it correct that if we want to change the configuration of characteristics,  we need to follow this steps?

    1. Delete the Service by GATTServApp_DeregisterService

    2. Change the Characteristics configuration and re-register the Service by GATTServApp_RegisterService

    Regards,

    A.Fujinaka

  • Hi,

    Yes this is correct.

    Kind regards,
    Maxence