I am performing "just pairing" using peer manager ( SDK 11.0 ) in my custom board which uses nrf52 chip.
I am getting this events
Please help me to find the correct sequence of pairing procedure and to find the correct sequence when already paired device gets connected.
You should get:
PM_EVT_PEER_DATA_UPDATE_SUCCEEDED - A piece of peer data was stored, updated, or cleared in flash storage.
Thanks Petter for responding.
I am getting these events. But after receiving PM_EVT_CONN_SEC_START event. I start data transfer over BLE causes problem in my communication. So i have to wait untill all peer manager events are completed.
Is there any way to tell peer manager that do not update anything. By doing so i do not want to receive PM_EVT_PEER_DATA_UPDATE_SUCCEEDED events multiple times.
What kind of problem? I don't understand. Why do you have to wait until the events are completed? I don't think you can tell Peer Manager not to update anything, I guess it is doing it for a reason. I'm not exactly sure what is updated in your case though?
My application is doing multiple thing at the same time like
communication over BLE, data transfer over uart, and few sensor management.
So while pairing process is going on, if i do uart communication at the same time, i am receiving incomplete uart data. And this only happens when my central is busy doing peer-manager-data-update. So it is very important for me to get exact event that state that peer-manager has completed its work. So that i can start other stuff.
I found the solution. it is fds which causes the peer-manager event miss. Now i perform fds_gc() after every peer-manager operation and it all works fine.