STM32WB55 sometimes returns unknown error value when trying to update a characteristic
Hi,
I am using an STM32WB55RCV6 with the full BLE stack.
During operation, I am updating some characteristics. Some at the push of a button, some scheduled with a timer.
Sometimes, unregularly, and only when the device is connected (to a smartphone), the following happens:
When I use the following function from custom_stm.c quite often
Custom_STM_App_Update_Char(...)
(this functionthen calls aci_gatt_update_char_value(...)),
the Characteristic is NOT updated and I get the return value "12".
The function usually works, but only once in a while, when I am updating a lot of values, I get this error code. It also only happens when the microcontroller is connected to another device (here: a smartphone). When this error occures, usually the next few times when I call Custom_STM_App_Update_Char(...), these functions also fail (same return code), but after a while, it works again and updates the characteristics properly.
The smartphone, that is connected, has "indicate" enable for the respective characteristics. I do not know if that might have anything to do with the return value.
Nowhere I found an explanation what this error code means. There are actually a lot of error codes defined in the ST libraries and I read the application notes for BLE (where they explain the function aci_gatt_update_char_value), but nowhere the error code 12 is explained.
Before I go into too much detail how my program is structured, I would just like to know what the error code 12 means. I mean, if there is an error code, it should have a meaning, right? I already spent quite some hours on this issue and I think knowing what the error code means would help me a lot.
Kind regards
René
