Is there an easy way to check if a node is connected to a network or not? Thanks,
If you have serial I/O and basic CLI support built into the firmware, and are able to attach an ISA3 adapter to it, the simplest way is to use the "info" command.
Using CLI: Use the "info" command and check network state [xx]. 00 for EMBER_NO_NETWORK, 01 for EMBER_JOINING_NETWORK, 02 for EMBER_JOINED_NETWORK, 03 for EMBER_JOINED_NETWORK_NO_PARENT, 04 for EMBER_LEAVING_NETWORK. (enum EmberNetworkStatus)
Using API: Use emberNetworkState)
/** @brief Returns the current join status.
* Returns a value indicating whether the node is joining,
* joined to, or leaving a network.
* @return An ::EmberNetworkStatus value indicating the current join status.