Reply
Highlighted
Posts: 25
Registered: ‎05-13-2015
Accepted Solution

Check if node is connected to a network

Is there an easy way to check if a node is connected to a network or not? Thanks,

 

Erik

Posts: 138
Registered: ‎11-06-2014

Re: Check if node is connected to a network

Hi Erik,

 

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.

 

Yuping

Posts: 79
Registered: ‎02-12-2014

Re: Check if node is connected to a network

Hi Erik,

 

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.
*/
EmberNetworkStatus emberNetworkState(void);

 

~~~~~~~~~Dan~~~~~~~~~~
ZigBee Application Engineer