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

pm_conn_sec_status_get bug?

phenomenon:

When master successfully encrypts using previous binding information, pm_evt_handler in main.c receives a PM_EVT_CONN_SEC_SUCCEEDED event and gets a bonded state of 0 using pm_conn_sec_status_get.

My point is:

After the master has successfully encrypted using the previous binding information, the slave should also be in the bonded state. By looking at peer_manager.c, since the above process is considered PM_LINK_SECURED_PROCEDURE_ENCRYPTION, the bonded flag is not set in pm_sm_evt_handler

Is it my understanding wrong? If I did not understand it, how to fix it?

Related