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

Error: L6218E

Dear Nordic Team,

Thanks for supporting.

I am try to implement static passkey in experimental_ble_app_blinky example. After include Peer manager facing below error. Also attached my complete source code. Please support me.

Hardware : PCA10028 SDK: SDK12.2.0

Error : image description

Source Code : main.c

Project File :experimental_ble_app_blinky.rar

Parents
  • Hi,

    It looks like you either did not include the source file for peer manager, peer_manager.c, into your project, or that peer manager is not enabled in your sdk_config.h file:

    #ifndef PEER_MANAGER_ENABLED
    #define PEER_MANAGER_ENABLED 1
    #endif
    

    You should add all .c files from nRF5_SDK_12.2.0_f012efa\components\ble\peer_manager in your project.

    Best regards,

    Jørgen

  • You are not passing the BLE events to peer manager, and is replying to pairing/bonding request with BLE_GAP_SEC_STATUS_PAIRING_NOT_SUPP. You should remove the call to sd_ble_gap_sec_params_reply on the BLE_GAP_EVT_SEC_PARAMS_REQUEST event in on_ble_evt handler.

    You also need to add these lines to your ble_evt_dispatch() function, to make peer manager handle the BLE events:

    ble_conn_state_on_ble_evt(p_ble_evt);
    ble_conn_params_on_ble_evt(p_ble_evt);
    pm_on_ble_evt(p_ble_evt);
    
Reply
  • You are not passing the BLE events to peer manager, and is replying to pairing/bonding request with BLE_GAP_SEC_STATUS_PAIRING_NOT_SUPP. You should remove the call to sd_ble_gap_sec_params_reply on the BLE_GAP_EVT_SEC_PARAMS_REQUEST event in on_ble_evt handler.

    You also need to add these lines to your ble_evt_dispatch() function, to make peer manager handle the BLE events:

    ble_conn_state_on_ble_evt(p_ble_evt);
    ble_conn_params_on_ble_evt(p_ble_evt);
    pm_on_ble_evt(p_ble_evt);
    
Children
No Data
Related