Hi,
I'm using a SAMB11 to make a serial bridge between a smartphone and a SAM4L microcontroller. In order to send data, I use at_ble_characteristic_value_set() and at_ble_notification_send(), then I wait for the GATT server event AT_BLE_NOTIFICATION_CONFIRMED before sending another another frame. This seems to work well, except that the event is sometimes not received. I supposed that this meant there is an error during transfer, so I tried to resend the frame after a timeout, but that seems to make the bluetooth stack crash. So here is my question : is it normal to not receive the AT_BLE_NOTIFICATION_CONFIRMED event sometimes, and if so, what is the correct procedure to follow to continue the connection?
Thanks in advance for the help!