dynamically create a service

To create a release, we create an extended HEX by adding to the HEX file configuration data that will be located in non-volatile memory on flash.
At startup, this configuration is read.
We have a GATT service. Depending on the configuration we may have to hide certain characteristics.
This is not possible when the service definition is statically defined with BT_GATT_SERVICE_DEFINE().

Hence my question: how to dynamically create a service ? Is there sample code?

I have tried
bt_gatt_service_register() but got build errors.

Parents Reply Children
Related