static ZigBee findOrCreateRemote(long address64, short address16) { ZigBee zb; synchronized (knownNodes) { zb = knownNodes.get(new Long(address64)); if (zb == null) { zb = new ZigBee(); zb.updateAddress64(address64); } } zb.updateAddress16(address16); return zb; }
void process(ZigBee zb, byte[] packet, int offset) { zb.updateAddress16((short) bytesToNum(packet, offset, 2, packet.length - 1)); }