NordicSemiconductor / IOS-nRF-Toolbox

The nRF Toolbox is a container app that stores your Nordic Semiconductor apps for Bluetooth Low Energy in one location.
https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Toolbox
BSD 3-Clause "New" or "Revised" License
590 stars 205 forks source link

iphone connecting to bluetooth bug #124

Open Matthew-D7 opened 2 years ago

Matthew-D7 commented 2 years ago

I added a secure connection restriction in my main program, in this application, "nrf toolbox" will crash when I can't connect and click cancel. And "nrf connect" will keep requesting connection repeatedly until it can connect after exceeding my limit.pm_evt_handler function in main.c: case PM_EVT_CONN_SEC_PARAMS_REQ: { if(GetPassCount() <= 5) sd_ble_gap_disconnect(m_conn_handle, BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION); break; } image