I use usbd_ble_uart_pca10056_s140 demo add HID but when bonding fatal error.
this is my code /cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-ef9d92a7ed0649dab15d867bf140c962/sdk2.rar.
I use usbd_ble_uart_pca10056_s140 demo add HID but when bonding fatal error.
this is my code /cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-ef9d92a7ed0649dab15d867bf140c962/sdk2.rar.
Hi,
You are responding with pairing not supported in main.c::ble_evt_handler().
Remove the below section in the ble_evt_handler, as bonding/pairing is handled by peer_manager:
case BLE_GAP_EVT_SEC_PARAMS_REQUEST: // Pairing not supported err_code = sd_ble_gap_sec_params_reply(m_conn_handle, BLE_GAP_SEC_STATUS_PAIRING_NOT_SUPP, NULL, NULL); APP_ERROR_CHECK(err_code); break;
Could you try this and report back if you still have issues?
Best regards,
Håkon
Hi,
You are responding with pairing not supported in main.c::ble_evt_handler().
Remove the below section in the ble_evt_handler, as bonding/pairing is handled by peer_manager:
case BLE_GAP_EVT_SEC_PARAMS_REQUEST: // Pairing not supported err_code = sd_ble_gap_sec_params_reply(m_conn_handle, BLE_GAP_SEC_STATUS_PAIRING_NOT_SUPP, NULL, NULL); APP_ERROR_CHECK(err_code); break;
Could you try this and report back if you still have issues?
Best regards,
Håkon