This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

关于 osal_nv_item_len 得到的长度为0的问题。

在终端节点模式下修改panid失败!

osal_nv_write(ZCD_NV_PANID, 0, osal_nv_item_len(ZCD_NV_PANID), &panID);

跟踪了一下发现osal_nv_item_len(ZCD_NV_PANID) 得到的长度为0导致失败。

这个是为什么呢?

我在协调器模式下调用osal_nv_write(ZCD_NV_PANID, 0, osal_nv_item_len(ZCD_NV_PANID), &panID);就可以正常修改panid的值。