Examples of TxRequest16


Examples of com.rapplogic.xbee.api.wpan.TxRequest16

      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));
      // send the packet and wait up to 12 seconds for the transmit status reply
      final TxStatusResponse response = (TxStatusResponse) xbee.sendSynchronous(request,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.