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

pm_peer_new() causing "PM_EVT_ERROR_UNEXPECTED"

Hi,

I want to add new peer to peer manager using pm_peer_new().

pm_peer_id_t p1 = 0;

pm_peer_new(&p1,&bond_info,NULL);

there are no peers, so trying to add as peer_id 0. but this causing "PM_EVT_ERROR_UNEXPECTED" error in pm_evt_handler() function.

bond_info is filled with information.

Parents Reply
  • Hi Surya, 

    What is the version of SDK you are using?

    Can you also add the debug log here by adding DEBUG to your preprocessor definitions? Also enable logging in Peer Manager and PM_LOG_LEVEL to debug.

    // <e> PM_LOG_ENABLED - Enable logging in Peer Manager and its submodules.
    //==========================================================
    #ifndef PM_LOG_ENABLED
    #define PM_LOG_ENABLED 1
    #endif
    // <o> PM_LOG_LEVEL  - Default Severity level
     
    // <0=> Off 
    // <1=> Error 
    // <2=> Warning 
    // <3=> Info 
    // <4=> Debug 
    
    #ifndef PM_LOG_LEVEL
    #define PM_LOG_LEVEL 3
    #endif
    

    Please upload the debug log to help identify the issue.  

    -Amanda H.

Children
Related