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.

定义子设备数量问题

Other Parts Discussed in Thread: Z-STACK

请问各位:如图所示红框内的宏定义指的是什么设备,代表的子设备是终端吗?我的网络是一个协调器,20个路由,没有接入终端设备,这样设置为0是正确的吗?

  • NWK_MAX_DEVICE_LIST: Number of direct children supported by the association table, further maintained by child aging

    // Don't change this value to set the number of devices. Change
    // NWK_MAX_DEVICE_LIST above
    #define NWK_MAX_DEVICES ( NWK_MAX_DEVICE_LIST + 1 ) // One extra space for parent
  • 如果你用的是Z-Stack 3.0以前的版本,我記得路由也會佔用NWK_MAX_DEVICE_LIST定義的空間,建議你還是設置成20