Quantcast
Channel: Zigbee 和 Thread
Viewing all articles
Browse latest Browse all 16962

帖子: RE: 加密后不能通讯

$
0
0

好的,我试一下,

我断点调试的时候走到status = osal_nv_item_init( ZCD_NV_PRECFGKEY, SEC_KEY_LEN, zgPreConfigKey );

osal_nv_item_init()返回是NV_ITEM_UNINIT而不是ZSUCCESS所以没有进入

if ( status == ZSUCCESS )
  {
    if ( setDefault )
    {
      // Write the default value back to NV
      status =  osal_nv_write( ZCD_NV_PRECFGKEY, 0, SEC_KEY_LEN, zgPreConfigKey );
    }
  }


Viewing all articles
Browse latest Browse all 16962

Trending Articles