This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

BLE Error Issue

Hi,

I have programmed a BLE code. In the code we are continuously connecting and disconnecting BLE connection. The BLE connection is established for around say 1 sec and it is then again established after 1 min or so. This is a continuous process. Sometimes, it gives following error: NRF_ERROR_INVALID_STATE: This error i notice comes when i try to advertise and the BLE connection gets establieshed. I have kept a flag to check the connection status and do this. But still sometimes it advertises when a connection is there. BLE_ERROR_INVALID_CONN_HANDLE: This i notice happens sometimes when i try to update connection parameters and in between the BLE connection gets lost.

To solve this error, can i re-initialise the BLE module when i get these errors or just ignore these error. Will it cause my code to behave randomly. How to handle this error.

Related