@Test public void deviceStatusUpdate() { ZigBeeNetworkDiscoverer discoverer = new ZigBeeNetworkDiscoverer(networkManager); discoverer.setRetryPeriod(0); discoverer.setRequeryPeriod(0); discoverer.setRetryCount(0); discoverer.deviceStatusUpdate(ZigBeeNodeStatus.UNSECURED_JOIN, 2222, new IeeeAddress("1111111111111111")); Mockito.verify(networkManager, Mockito.times(1)).updateNode(ArgumentMatchers.any()); }
@Override public void deviceStatusUpdate(final ZigBeeNodeStatus deviceStatus, final Integer networkAddress, final IeeeAddress ieeeAddress) { switch (deviceStatus) { case UNSECURED_JOIN: case SECURED_REJOIN: case UNSECURED_REJOIN: logger.debug("{}: Device status updated. NWK={}", ieeeAddress, String.format("%04X", networkAddress)); addNode(ieeeAddress, networkAddress); break; default: break; } }
ZigBeeNetworkDiscoverer implements ZigBeeCommandListener, ZigBeeAnnounceListener { @Override public void deviceStatusUpdate(final ZigBeeNodeStatus deviceStatus, final Integer networkAddress, final IeeeAddress ieeeAddress) { switch (deviceStatus) { case UNSECURED_JOIN: case SECURED_REJOIN: case UNSECURED_REJOIN: logger.debug("{}: Device status updated. NWK={}", ieeeAddress, String.format("%04X", networkAddress)); addNode(ieeeAddress, networkAddress); break; default: break; } } }
ZigBeeNetworkDiscoverer implements ZigBeeCommandListener, ZigBeeAnnounceListener { @Override public void deviceStatusUpdate(final ZigBeeNodeStatus deviceStatus, final Integer networkAddress, final IeeeAddress ieeeAddress) { switch (deviceStatus) { case UNSECURED_JOIN: case SECURED_REJOIN: case UNSECURED_REJOIN: logger.debug("{}: Device status updated. NWK={}", ieeeAddress, String.format("%04X", networkAddress)); addNode(ieeeAddress, networkAddress); break; default: break; } } protected  ZigBeeNetworkDiscoverer(final ZigBeeNetworkManager networkManager); }
ZigBeeNetworkDiscoverer implements ZigBeeCommandListener, ZigBeeAnnounceListener { @Override public void deviceStatusUpdate(final ZigBeeNodeStatus deviceStatus, final Integer networkAddress, final IeeeAddress ieeeAddress) { switch (deviceStatus) { case UNSECURED_JOIN: case SECURED_REJOIN: case UNSECURED_REJOIN: logger.debug("{}: Device status updated. NWK={}", ieeeAddress, String.format("%04X", networkAddress)); addNode(ieeeAddress, networkAddress); break; default: break; } } protected  ZigBeeNetworkDiscoverer(final ZigBeeNetworkManager networkManager); @Override void deviceStatusUpdate(final ZigBeeNodeStatus deviceStatus, final Integer networkAddress,
            final IeeeAddress ieeeAddress); @Override void announceUnknownDevice(final Integer networkAddress); @Override void commandReceived(final ZigBeeCommand command); }
ZigBeeNetworkDiscoverer implements ZigBeeCommandListener, ZigBeeAnnounceListener { @Override public void deviceStatusUpdate(final ZigBeeNodeStatus deviceStatus, final Integer networkAddress, final IeeeAddress ieeeAddress) { switch (deviceStatus) { case UNSECURED_JOIN: case SECURED_REJOIN: case UNSECURED_REJOIN: logger.debug("{}: Device status updated. NWK={}", ieeeAddress, String.format("%04X", networkAddress)); addNode(ieeeAddress, networkAddress); break; default: break; } } protected  ZigBeeNetworkDiscoverer(final ZigBeeNetworkManager networkManager); @Override void deviceStatusUpdate(final ZigBeeNodeStatus deviceStatus, final Integer networkAddress,
            final IeeeAddress ieeeAddress); @Override void announceUnknownDevice(final Integer networkAddress); @Override void commandReceived(final ZigBeeCommand command);  }