Skip to main content
Maxim Shylo
Associate II
Jun 29, 2022 8:31 AM UTC
Question

How can I find out if my ZigBee device is connected to a hub? I call status = APP_ZIGBEE_ZbStartupPersist (zigbee_app_info.zb); If the device is removed from my hub, this call returns FAIL. But if the hub is off this call returns SUCCESS.

..

This topic has been closed for replies.

1 reply

Remy ISSALYS
ST Technical Moderator
Jul 11, 2022 10:06 AM UTC

Hello,

If you want to check that your device is well connected to your Zigbee network, any request like a poll will be sufficient. Which environment are you using for your device (SED, ZED, ZR) ?

APP_ZIGBEE_ZbStartupPersist function is used to recover data from the Flash. So it doesn't generate any 802.15.4 request. If the status return is failed, you should do a standard join to perform the connection since there is no configuration data. If it's success, there is nothing to do since you have recover configuration data from the flash.

Best Regards