// imprime las direcciones almacenadas private void orderElementsAddr64TextList() { clearAreaTexto1(); setLineAreaTexto1("#", "ID", "Direccion 64 Bits"); for (Integer i : numAddr64Register.keySet()) { XBeeAddress64 thempAddr64 = numAddr64Register.get(i); if (addr64Names.containsKey(thempAddr64)) { setLineAreaTexto1(i.toString(), addr64Names.get(thempAddr64), thempAddr64.toString()); } else { setLineAreaTexto1(i.toString(), thempAddr64.toString()); } } }
@Override public void remoteATMessage(String apiID, RemoteAtResponse atRemoteResponse) { XBeeAddress64 thempAddr64 = atRemoteResponse.getRemoteAddress64(); if (apiID.equals("NI") && lastAddr64Chnged.equals(thempAddr64)) { try { xbeeC.sendATCommand("ND"); // System.out.println("enviando ND"); } catch (XBeeException ex) { setLineAreaTexto2( "There are problems in the Port...\n" + "Please verify!\n" + "Error type: " + ex); } setLineAreaTexto2("ID changed!"); lastAddr64Chnged = null; refreshElementsJcombox(); orderElementsAddr64TextList(); } }