This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

pm_conn_secure fails 0x3002

Hello,

I'm trying to migrate to Peer Manager, but I have a problem. This code returns error BLE_ERROR_INVALID_CONN_HANDLE constantly.

static void on_ble_evt(ble_evt_t * p_ble_evt)
{
...
    case BLE_GAP_EVT_CONNECTED:                 					
         err_code = pm_conn_secure(p_gap_evt->conn_handle, false);
         APP_ERROR_CHECK(err_code);
    break;

Device has the Central role. Where is my mistake?

Best Regards,

Pavel

my_proj.zip

Parents Reply Children
No Data
Related