IOS-nRF-Toolbox
IOS-nRF-Toolbox copied to clipboard
iphone connecting to bluetooth bug
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; }