Package com.rapplogic.xbee.api

Examples of com.rapplogic.xbee.api.ErrorResponse


          processData(null, UGateEvent.Type.WIRELESS_DATA_TX_STATUS_RESPONSE_FAILED, command, rd,
              RS.rbLabel(KEY.SERVICE_TX_RESPONSE_ERROR, rd, txResponse.getStatus()));
        }
      } else if (response instanceof ErrorResponse) {
        final Command command = extractCommand(response);
        final ErrorResponse errorResponse = (ErrorResponse) response;
        final String rawBytes = ByteUtils.toBase16(response.getRawPacketBytes());
        RxData rd;
        // TODO : need a way to determine what address the error came from for an ErrorResponse
//        if (imgMap.containsKey(errorResponse.getRemoteAddress())) {
//          imgMap.get(errorResponse.getRemoteAddress()).setStatus(RxData.Status.PARSING_ERROR);
//          rd = imgMap.get(errorResponse.getRemoteAddress()).createImageSegmentsSnapshot();
//          imgMap.remove(errorResponse.getRemoteAddress());
//        } else {
          rd = new RxRawData<String>(null, Status.GENERAL_FAILURE, 0, rawBytes);
//        }
        processData(null, UGateEvent.Type.WIRELESS_DATA_TX_STATUS_RESPONSE_FAILED, command, rd,
            RS.rbLabel(KEY.SERVICE_TX_RESPONSE_ERROR, rd, errorResponse.getErrorMsg()));
        log.error("", errorResponse.getException());
      } else {
        final String rawBytes = ByteUtils.toBase16(response.getRawPacketBytes());
        int[] processedPacketBytes = response.getProcessedPacketBytes();
        if (processedPacketBytes != null && processedPacketBytes.length > 0) {
          /*
 
View Full Code Here

TOP

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

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.