zstack mesh 1.0.0 cc2538作为协调器 启动NV功能后,协调器如何在不复位的情况下,只清除所有子节点的信息,而不能清除当前已建立的网络信息?
l l1:
zgWriteStartupOptions(ZG_STARTUP_SET, (ZCD_STARTOPT_DEFAULT_NETWORK_STATE | ZCD_STARTOPT_DEFAULT_CONFIG_STATE));
当前协调器调用此函数清除NV区数据,但是不知道 ZCD_STARTOPT_DEFAULT_NETWORK_STATE 和 ZCD_STARTOPT_DEFAULT_CONFIG_STATE分别清除的是什么信息?
l l1:
回复 YiKai Chen:
有没有例程参考下
YiKai Chen:
回复 l l1:
没有参考例程
Kevin Qiu1:
回复 l l1:
ZCD_STARTOPT_CLEAR_CONFIG – If this option is set, the device will overwrite all the configuration parameters (except this one) with the “default” values that it is programmed with. This is used to erase the existing configuration and bring the device into a known state.
ZCD_STARTOPT_CLEAR_STATE – If this option is set, the device will clear its previous network state (which would exist if the device had been operating on a network prior to the reset). This is typically used during application development. During regular device operation, this flag is typically not set, so that an accidental device reset will not cause loss of network state.