While going through the sensorDemoApp which uses simple api which is documented in the above mentioned document. I have found following conflict.
1. In section 5.3.2.1 Startup parameters :
ZCD_STARTOPT_CLEAR_CONFIG ( 0x01 ) – If this option is set, the device will overwrite all its configuration parameters ( except this one ) with the “default” settings that it is programmed with.
ZCD_STARTOPT_CLEAR_STATE ( 0x02 ) – If this option is set, the device will attempt to clear its network state prior to the reset. This is used if the device was already part of the network and had saved its previous network state.
2. In section 5.1.2 zb_StartRequest: The zb_StartRequest function starts the ZigBee stack. If the startup options indicated that previous network state should be restored (ZCD_STARTOPT_CLEAR_CONFIG is set), then the device will simply load the previously saved network state and being functioning on the ZigBee network.
The conflict is simple in the section in no 1 , if ZCD_STARTOPT_CLEAR_CONFIG is set it will clear or rest all the parameter with default value but in the section in no 2, if this bit is set it network will be restored. Also is it depicted in 1 , clearing network state will depend on ZCD_STARTOPT_CLEAR_STATE , if set-> clear network, else restore it .
Pleae put some light to the above mentioned confusion.
Also please let me know what is the network state exactly means does it refers to Network specific parameters as listed in section 5.3.1 in the "Z-Stack Simple API.pdf".
Thanks & regards
Biprangshu Saha