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

peer id deletion

Hi

facing a strange issue in my firmware.

I am deleting the bonds in the initialisation.

When I go for a hard reset, sometimes I get the peer id list NULL --> correct scenario.

But sometimes it is not NULL. It is having a the bond information.

I am surprised why it is behaving so strange on reset.

Please suggest how to handle this condition.

Regards

Pratibha

Parents
  • Hi 

    I am using SDK14.0.

    My requirement is I want to make bond when making connection to the android APP.

    That I am able to do. But after resetting it I want to delete all the bonds.

    Also, I want my device should be able to make only one bond.

    But I am getting a fatal error when at the initialisation I try to delete bonds if present.

    Following is the code part in my main in initialisation:

    ret_code_t err_code;
        NRF_LOG_INFO("Erase bonds!");
        err_code = pm_peers_delete();
        APP_ERROR_CHECK(err_code);
    When I reset my device when it has a bond.
    I get a fatal error in deletion of bond after reset.
    Please suggest me if I am doing anything wrong.
Reply
  • Hi 

    I am using SDK14.0.

    My requirement is I want to make bond when making connection to the android APP.

    That I am able to do. But after resetting it I want to delete all the bonds.

    Also, I want my device should be able to make only one bond.

    But I am getting a fatal error when at the initialisation I try to delete bonds if present.

    Following is the code part in my main in initialisation:

    ret_code_t err_code;
        NRF_LOG_INFO("Erase bonds!");
        err_code = pm_peers_delete();
        APP_ERROR_CHECK(err_code);
    When I reset my device when it has a bond.
    I get a fatal error in deletion of bond after reset.
    Please suggest me if I am doing anything wrong.
Children
No Data
Related