Hi. I modified the dicoverdevices example provided by digi by passing a ZigbeeDeviceDataReceiveListener in MainApp.java.
It works great at finding my two Zigbee HA 1.2 thermostats. However, it will not pick up my GE Link Light. XCTU shows the thermostats as endoints and the light as a router. Any ideas on how to capture a router with ZigbeeDeviceDataReceiveListener? The code:
public static void main(String[] args) {
System.out.println(" Ā±------------------------------------------+ā);
System.out.println(ā | XBee Java Library Discover Devices Sample |ā);
System.out.println(ā Ā±------------------------------------------+
");
// XBeeDevice myDevice = new XBeeDevice(PORT, BAUD_RATE);
ZigBeeDevice myDevice = new ZigBeeDevice(PORT, BAUD_RATE);
try {
myDevice.open();
myDevice.addExplicitDataListener(new ZigbeeDeviceDataReceiveListener());
//XBeeNetwork myXBeeNetwork = myDevice.getNetwork();
ZigBeeNetwork myXBeeNetwork = (ZigBeeNetwork) myDevice.getNetwork();
myXBeeNetwork.setDiscoveryTimeout(15000);
myXBeeNetwork.addDiscoveryListener(new MyDiscoveryListener());
myXBeeNetwork.startDiscoveryProcess();