Hello!
Please again I need help about two questions:
- My zigBee plant is made of one coordinator, three routers and 15 end devices, all them working properly:
I was able to send and receive data from all devices, using zigbee2mqtt application.
At this development level, I need to take the right possible actions when something on the network goes wrong.
So, as suggested by your support, on each device I continuously monitor the variable:
“deviceState == zstack_DevState_DEV_ROUTER” / “deviceState == zstack_DevState_DEV_END_DEVICE”.
But I wonder this variable does not fall down to “zstack_DevState_HOLD” when I turn off Coordinator! Even after 30 seconds….
I was using this variable to know my device is joined on network… but something is wrong……
The variable is very useful at the moment the device for the first time gets joined to network, but thereafter it seems to be useless….unless I unjoin the device from the network, to original state.
So (if I do not misunderstand your suggestions) the question is: excluding periodic application level data read/write, how can I be sure I’m joined to Coordinator?
- A related question: is there some way at application startup I can understand my device is already registered on the network? (some data written in Flash memory….)
Thanks for your kind collaboration
Luigi