@Test public void getFirmwareVersion() { ZigBeeDongleTelegesis dongle = new ZigBeeDongleTelegesis(null); assertEquals("", dongle.getFirmwareVersion()); }
@Override public String getFirmwareVersion() { int versionIndex = versionString.indexOf("Version="); if (versionIndex == -1) { return ""; } return versionString.substring(versionIndex + 8); }
ZigBeeDongleTelegesis implements ZigBeeTransportTransmit, ZigBeeTransportFirmwareUpdate, TelegesisEventListener { @Override public String getFirmwareVersion() { int versionIndex = versionString.indexOf("Version="); if (versionIndex == -1) { return ""; } return versionString.substring(versionIndex + 8); } }
ZigBeeDongleTelegesis implements ZigBeeTransportTransmit, ZigBeeTransportFirmwareUpdate, TelegesisEventListener { @Override public String getFirmwareVersion() { int versionIndex = versionString.indexOf("Version="); if (versionIndex == -1) { return ""; } return versionString.substring(versionIndex + 8); } ZigBeeDongleTelegesis(final ZigBeePort serialPort); }
ZigBeeDongleTelegesis implements ZigBeeTransportTransmit, ZigBeeTransportFirmwareUpdate, TelegesisEventListener { @Override public String getFirmwareVersion() { int versionIndex = versionString.indexOf("Version="); if (versionIndex == -1) { return ""; } return versionString.substring(versionIndex + 8); } ZigBeeDongleTelegesis(final ZigBeePort serialPort); TelegesisNcp getTelegesisNcp(); @Override ZigBeeStatus initialize(); @Override ZigBeeStatus startup(boolean reinitialize); @Override void shutdown(); @Override IeeeAddress getIeeeAddress(); @Override Integer getNwkAddress(); @Override void sendCommand(final int msgTag, final ZigBeeApsFrame apsFrame); @Override void setZigBeeTransportReceive(ZigBeeTransportReceive zigbeeTransportReceive); @Override void telegesisEventReceived(TelegesisEvent event); void telegesisEventReceivedRunnable(TelegesisEvent event); @Override ZigBeeChannel getZigBeeChannel(); @Override ZigBeeStatus setZigBeeChannel(ZigBeeChannel channel); @Override int getZigBeePanId(); @Override ZigBeeStatus setZigBeePanId(int panId); @Override ExtendedPanId getZigBeeExtendedPanId(); @Override ZigBeeStatus setZigBeeExtendedPanId(ExtendedPanId extendedPanId); @Override ZigBeeStatus setZigBeeNetworkKey(final ZigBeeKey key); @Override ZigBeeKey getZigBeeNetworkKey(); @Override String getVersionString(); void setTelegesisPassword(String telegesisPassword); @Override boolean updateFirmware(final InputStream firmware, final ZigBeeTransportFirmwareCallback callback); void bootloadComplete(); @Override String getFirmwareVersion(); @Override boolean cancelUpdateFirmware(); @Override ZigBeeStatus setTcLinkKey(ZigBeeKey key); @Override ZigBeeKey getTcLinkKey(); @SuppressWarnings("unchecked") @Override void updateTransportConfig(TransportConfig configuration); void reinitializeDongle(Integer panId, ExtendedPanId epanId, Long frameCounter); void notifyStateUpdate(boolean state); }
ZigBeeDongleTelegesis implements ZigBeeTransportTransmit, ZigBeeTransportFirmwareUpdate, TelegesisEventListener { @Override public String getFirmwareVersion() { int versionIndex = versionString.indexOf("Version="); if (versionIndex == -1) { return ""; } return versionString.substring(versionIndex + 8); } ZigBeeDongleTelegesis(final ZigBeePort serialPort); TelegesisNcp getTelegesisNcp(); @Override ZigBeeStatus initialize(); @Override ZigBeeStatus startup(boolean reinitialize); @Override void shutdown(); @Override IeeeAddress getIeeeAddress(); @Override Integer getNwkAddress(); @Override void sendCommand(final int msgTag, final ZigBeeApsFrame apsFrame); @Override void setZigBeeTransportReceive(ZigBeeTransportReceive zigbeeTransportReceive); @Override void telegesisEventReceived(TelegesisEvent event); void telegesisEventReceivedRunnable(TelegesisEvent event); @Override ZigBeeChannel getZigBeeChannel(); @Override ZigBeeStatus setZigBeeChannel(ZigBeeChannel channel); @Override int getZigBeePanId(); @Override ZigBeeStatus setZigBeePanId(int panId); @Override ExtendedPanId getZigBeeExtendedPanId(); @Override ZigBeeStatus setZigBeeExtendedPanId(ExtendedPanId extendedPanId); @Override ZigBeeStatus setZigBeeNetworkKey(final ZigBeeKey key); @Override ZigBeeKey getZigBeeNetworkKey(); @Override String getVersionString(); void setTelegesisPassword(String telegesisPassword); @Override boolean updateFirmware(final InputStream firmware, final ZigBeeTransportFirmwareCallback callback); void bootloadComplete(); @Override String getFirmwareVersion(); @Override boolean cancelUpdateFirmware(); @Override ZigBeeStatus setTcLinkKey(ZigBeeKey key); @Override ZigBeeKey getTcLinkKey(); @SuppressWarnings("unchecked") @Override void updateTransportConfig(TransportConfig configuration); void reinitializeDongle(Integer panId, ExtendedPanId epanId, Long frameCounter); void notifyStateUpdate(boolean state);  }