Network samples - discover devices

This sample Java application demonstrates how to obtain the XBee network object from a local XBee device and discover the remote XBee devices that compose the network. The example adds a discovery listener, so the callbacks provided by the listener object receive the events.

The remote XBee devices are printed out as soon as they are found during the discovery.

You can locate the example in the following path:

examples/network/DiscoverDevicesSample

Note For more information about how to perform a network discovery, see Discover the network.