Hi,
I'm using nrf52840 to connect a mobile device via BLE.
I've noticed that when a lot of messages are sent, a disconnection occurs with reason code of NRF_ERROR_RESOURCES.
Can you please help me?
Thanks!
Hi,
I'm using nrf52840 to connect a mobile device via BLE.
I've noticed that when a lot of messages are sent, a disconnection occurs with reason code of NRF_ERROR_RESOURCES.
Can you please help me?
Thanks!
Hi,
NRF_ERROR_RESOURCES simply means that the softdevice have already buffered all notification in can hold, so you need to wait until BLE_GATTS_EVT_HVN_TX_COMPLETE event and retry.
Best regards,
Kenneth
Hi,
Just to clarify - NRF_ERROR_RESOURCES is received as an error code for disconnections. Do you think I need to try waiting for BLE_GATTS_EVT_HVN_TX_COMPLETE?
Thanks!
I do not see any reason why that should trigger disconnect, but does the issue go away if you disable LESC support during bonding?
Kenneth
I don't think it's the trigger as well.
However - I've noticed something else - each time disconnection with value 19 occurs - my BLE mobile application disappears, maybe crushed. I think it may be related to overload of messages on the mobile. Does it make sense?
Yes, that may explain things yes.
Kenneth
Ok, any ideas what is the reason for application failure when a lot of messages are sent?
Sorry no, don't have any experience with app development.
Kenneth
Sorry no, don't have any experience with app development.
Kenneth