2021-10-20 09:07 AM
I am trying to set some services as secondary.
When the client sends the "Find Included services" I don't see any events on the STM32WB55 side.
The logs from client indicate:
[18:57:40:898] : 'Find Included Services' request sent
[18:57:40:898] : Start Handle: 0x0001
[18:57:40:898] : End Handle: 0xFFFF
[18:57:40:899] : 'Command Status' event received
[18:57:40:899] : Status: BLE_STATUS_OK
[18:57:40:911] : 'GATT Error Notification' event received
[18:57:40:911] : Error Code: BLE_GATT_ERR_ATTRIBUTE_NOT_FOUND
Error: gpm.M1010: Find included services failed. Attribute not found
I checked and the STM32WB has a secondary service at handle : 0x0012
and its 2 characteristics at handles: 0x0013, 0x0015
2021-11-02 03:27 AM
Hello,
I was wondering whether you call ACI_GATT_INCLUDE_SERVICE in the application?
I made a small test with
STM32Cube_FW_WB_V1.12.0\Projects\P-NUCLEO-WB55.Nucleo\Applications\BLE\BLE_Peripheral_Lite\
and modified the BLE SVC initialization in the following way.
1) ACI_GATT_ADD_SERVICE, Secondary service
2) Add characteristics to Secondary service
3) ACI_GATT_ADD_SERVICE, Primary service
4) ACI_GATT_INCLUDE_SERVICE
5) Add characteristics to Primary service
When I connect to the target with ST BLE Toolbox from my phone I see both services, primary and secondary/
Best regards,
Martin
2021-11-03 04:15 AM
I don't, can you please elaborate on step 4).
What are the parameters of the command?
2021-11-03 05:49 AM