Connecting.
How to delete all pairings
Connecting.
How to delete all pairings
thanks,But every time I get an error:Fatal error
Did you heed the warning?
"
Warning: Use this function only when not connected or connectable. If a peer is or becomes connected or a PM_PEER_DATA_FUNCTIONS function is used during this procedure (until the success or failure event happens), the behavior is undefined.
"
Did you heed the warning?
"
Warning: Use this function only when not connected or connectable. If a peer is or becomes connected or a PM_PEER_DATA_FUNCTIONS function is used during this procedure (until the success or failure event happens), the behavior is undefined.
"
If I call "ble_gap_disconnect" before it, it can only delete peers if it is not broadcast?
There's a chance that you end up in an undefined state if you're doing connectable advertisements.
You can broadcast as much as you like.
My approach is to call ble_gap_disconnect first, then pm_peers_delete, but fatal errors still occur. What is the correct way? thank you.
Keyboard example
What function originally returns the error?