otInstanceFactoryReset does not work properly.

Hi,

Added a function to the coap_client sample code that executes otInstanceFactoryReset by pressing a button and sets it to factory shipping mode. However, it appears that the device just reset and did not delete all settings stored in non-volatile memory.
The CLI factroyreset command removes configurations stored in non-volatile memory.

I'm using the same API that I'm running in the CLI, so why would there be a difference?

I'm using SDK v2.5.0.

Best regards,

Hiroki

Parents
  • Hi,

    Can you post the exact code you have used to call the API?

    Are you using the unmodified coap_client sample from nRF Connect SDK v2.5.0, or have you made other modifications?

    Are you testing this on a nRF52840 DK?

    Best regards.
    Jørgen

  • Hi, Jorgen

    Thank you for reply.

    The part of the code that executes the API is as follows.

    I am trying to run it when I press BTN3.

    I am modifying the sample code, but I am changing the cli mode while it is still valid. If you run the ot factoryreset command in this changed state, the factory default mode will be set.

    I'm using a custom board, not the nRF52840 DK. The pin assignments have also been changed to use buttons on the custom board, and we have confirmed that btn3 processing is performed using printk.

    Best regards,

    Hiroki

Reply
  • Hi, Jorgen

    Thank you for reply.

    The part of the code that executes the API is as follows.

    I am trying to run it when I press BTN3.

    I am modifying the sample code, but I am changing the cli mode while it is still valid. If you run the ot factoryreset command in this changed state, the factory default mode will be set.

    I'm using a custom board, not the nRF52840 DK. The pin assignments have also been changed to use buttons on the custom board, and we have confirmed that btn3 processing is performed using printk.

    Best regards,

    Hiroki

Children
Related