Hello,
I'm currently trying to use the service changed characteristic to tell the GATT client about a change in the GATT server database (new/removed service).
If I understand well, it is not required to manually add this characteristic in the database, the BLE stack add it itself.
I should only need to:
- update the buildConfig.opt file in the stack (remove -DGATT_NO_SERVICE_CHANGED, add DL2CAP_CO_CHANNELS)
- call GATTServApp_AddService (GATT_ALL_SERVICES); in the application
Unfortunately, when the GATT client (a scanner App in Android smartphone) scans for services and characteristic, the Generic Attribute service (0x1801) is empty, no Service Changed characteristic is available.
In the SensorTag example project, this characteristic is visible by the GATT client.
Any idea where I have to look at in order to add this characteristic in the GATT database?
Do you agree that if I call GATTServApp_RegisterService() or GATTServApp_DeregisterService() functions, the service changed characteristic indicates the clients with new handle values or do I need something else?
Thanks in advance for you answers.