I tested out bt_gatt_service_register using the samples/bluetooth/peripheral sample by adding
I tested out bt_gatt_service_register using the samples/bluetooth/peripheral sample by adding
Hi,
I would recommend that you compare the two .config files, this way you will be able to see what is different in the projects and assess what could be the problem.
Also might be of value to compare any log files also.
Regards,
Jonathan
Hi,
I would recommend that you compare the two .config files, this way you will be able to see what is different in the projects and assess what could be the problem.
Also might be of value to compare any log files also.
Regards,
Jonathan
I've already compared config and copied my config to the sample as indicated in my original message. I've looked at the log and did not see any relevant BLE errors logged. The bt_gatt_service_register function returns success. However, that gatt service is not found when connecting via BLE.
Any tips on where to set break points in the Zephyr BLE code to see why service discovery is not including the dynamic services?
Did you compare the output .config file? So the files that are generated when building the project.
Regards,
Jonathan
I have the same problem.
Did you find a solution?
Br Mads
Pleas create a new ticket and link to this ticket if you are not able to solve the issue. We will do our best to help solve this.
Regards,
Jonathan
I have created ticket "Define a service dynamically" with Case ID: 321172.
Could you help me solving the issue?
An examples of how to define a GATT service dynamically could help me.