Package com.rapplogic.xbee.api

Examples of com.rapplogic.xbee.api.XBeeAddress16


    try {
      // bytes header command and status/failure code
      final int[] bytesHeader = new int[] { event.getCommand().getKey(), RxData.Status.NORMAL.ordinal() };
      final int[] bytes = event.getNewValue() != null && event.getNewValue().length > 0 ?
          UGateUtil.arrayConcatInt(bytesHeader, event.getNewValue()) : bytesHeader;
      final XBeeAddress16 xbeeAddress = getXbeeAddress(event.getSource().getAddress());
      // create a unicast packet to be delivered to the supplied address, with the pay load
      final TxRequest16 request = new TxRequest16(xbeeAddress, bytes);
      message = RS.rbLabel(KEY.SERVICE_WIRELESS_SENDING, bytes, event.getSource().getAddress());
      log.info(message);
      UGateKeeper.DEFAULT.notifyListeners(event.clone(UGateEvent.Type.WIRELESS_DATA_TX, i, message));
View Full Code Here


      return false;
    }
    try {
      AtCommandResponse response;
      int[] responseValue;
      final XBeeAddress16 remoteAddress = getXbeeAddress(remoteNode
          .getAddress());
      if (remoteAddress != null) {
        final RemoteAtRequest request = new RemoteAtRequest(
            remoteAddress, "MY");
        final RemoteAtResponse remoteResponse = (RemoteAtResponse) xbee
View Full Code Here

              + RemoteNodeType.WIRELESS_ADDRESS_MAX_DIGITS
              + " hex digits long");
    }
    final int msb = Integer.parseInt(rawAddress.substring(0, 2), 16);
    final int lsb = Integer.parseInt(rawAddress.substring(2, 4), 16);
    final XBeeAddress16 xbeeAddress = new XBeeAddress16(msb, lsb);
    return xbeeAddress;
  }
View Full Code Here

TOP

Related Classes of com.rapplogic.xbee.api.XBeeAddress16

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.