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.

怎么设置ZigBee network key为随机产生,而不使用默认的

Other Parts Discussed in Thread: Z-STACK

用的协议栈为Z-Stack home, 怎么设置ZigBee network key为随机产生的?

  • 你要在zgPreconfigKeyInit內用随机产生的方式複寫zgPreConfigKey來设置ZigBee network key为随机产生

  • 您可以看一下zgPreconfigKeyInit( uint8 setDefault )函数

     //NWK KEY

     //if nwk key is set to zeros, then generate a random key and use it

     osal_memset(zgPreConfigKey,0,SEC_KEY_LEN);

  •  //if nwk key is set to zeros, then generate a random key and use it

    這個只有在Z-Stack 3.0以後才有,如果是Z-Stack Home 1.2.2a以前的版本得要自己處理

x 出现错误。请重试或与管理员联系。