Hello,
i use notifications with sd_ble_gatts_hvx. If I push a lot of data, are notifications overwritten or do they are fifoed ?
How to do a kind of flow control to not loss any data ?
Hello,
i use notifications with sd_ble_gatts_hvx. If I push a lot of data, are notifications overwritten or do they are fifoed ?
How to do a kind of flow control to not loss any data ?
This is in the documentation for sd_ble_gatts_hvx, when you run out of buffers, you get BLE_ERR_NO_TX_BUFFERS. Your update is thrown away at that point. Flow control requires you to check the return code and retry later, or count the buffers used and subscribe to the BLE_EVT_TX_COMPLETE messages to know when you have buffers free.