I am a beginner to BLE Communication ,
Currently I am working on a project where I need to connect a peripheral device ( Central (nRF52840) ---> Peripheral (BLE device) ) Initial connection is successful and able to read service UUID's . but iam facing a issue with pairing once the connection is successful I receive this event BLE_GAP_EVT_SEC_REQUEST from bleEventHandler where i am trying to pass below security parameters like this
sd_ble_gap_authenticate()
and sd_ble_gap_sec_params_reply() and see the same error
Key Issues:
- Getting error code 8 (INVALID_STATE) when trying to initiate security
- Receiving "Pairing not supported" message
- Connection disconnects with reason 0x08