Is there a command ZC can get the current online status of ZED?
I can find out if ZED is offline through instructions.So as to be able to show whether ZED is online or not on the app
BR
Victor
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.
Is there a command ZC can get the current online status of ZED?
I can find out if ZED is offline through instructions.So as to be able to show whether ZED is online or not on the app
BR
Victor
Is the ZED in question associated with the ZC? If so then you can use AssocIsChild, AssocGetWithAddress, or a similar assoc_list API to check whether the ZED is active or has aged out. Or, if you are inquiring about a ZR's children, you can likewise use Zstackapi_ZdoIeeeAddrReq() to receive this device's association list.
Regards,
Ryan
Above is an example I've captured before. In your example, the first three bytes are the header (0x180101), next two are the attribute ID (0x0000, then status (0x00) and data type (0x10), followed by data value (0x00).
Regards,
Ryan