I modified the BLE fundamentals lesson 5 exercise 2 example (github repo) for my purposes. This uses a generated passkey for pairing with accept lists.
I removed the passkey stuff and followed the bt_conn_auth_cb changes specified in this old post.
static struct bt_conn_auth_cb conn_auth_callbacks = { .passkey_display = NULL, .passkey_confirm = NULL, .cancel = auth_cancel, .pairing_confirm = NULL, };
Those were the only changes I made to the example code, although the SDK has changed a lot since then. I also have it configured for allowing 1 maximum connection at a time and 5 total paired.
Whenever I pair once then disconnect and try to pair again with the same device or any other device, the firmware is unable to. On an android phone I get an error popup stating "incorrect PIN or passkey".
Are there any public examples which have just works with accept lists? How do I configure it for just works? The functionality I desire is the device pairing easily (up to 5) and using this method for it's miniscule security.