public class ATCommandResponse extends Object
Among the executed command, this object contains the response data and the command status.
ATCommand, 
ATCommandStatus| Constructor and Description | 
|---|
ATCommandResponse(ATCommand command)
Class constructor. 
 | 
ATCommandResponse(ATCommand command,
                 ATCommandStatus status)
Class constructor. 
 | 
ATCommandResponse(ATCommand command,
                 byte[] response)
Class constructor. 
 | 
ATCommandResponse(ATCommand command,
                 byte[] response,
                 ATCommandStatus status)
Class constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
ATCommand | 
getCommand()
Returns the AT command that generated the response. 
 | 
byte[] | 
getResponse()
Returns the AT command response data in byte array format if any. 
 | 
ATCommandStatus | 
getResponseStatus()
Returns the AT command response status. 
 | 
String | 
getResponseString()
Returns the AT command response data as string if any. 
 | 
public ATCommandResponse(ATCommand command)
ATCommandResponse with the given parameters.command - The ATCommand that generated the response.NullPointerException - if command == null.ATCommandpublic ATCommandResponse(ATCommand command, ATCommandStatus status)
ATCommandResponse with the given parameters.command - The ATCommand that generated the response.status - The ATCommandStatus containing the response 
               status.NullPointerException - if command == null or 
                              if status == null.ATCommand, 
ATCommandStatuspublic ATCommandResponse(ATCommand command, byte[] response)
ATCommandResponse with the given parameters.command - The ATCommand that generated the response.response - The command response in byte array format.NullPointerException - if command == null or 
                              if response == null.ATCommandpublic ATCommandResponse(ATCommand command, byte[] response, ATCommandStatus status)
ATCommandResponse with the given parameters.command - The ATCommand that generated the response.response - The command response in byte array format.status - The ATCommandStatus containing the response 
               status.NullPointerException - if command == null or 
                              if status == null.ATCommand, 
ATCommandStatuspublic ATCommand getCommand()
ATCommandpublic byte[] getResponse()
null if there is not response data.public ATCommandStatus getResponseStatus()
ATCommandStatuspublic String getResponseString()
null if there 
         is not response data.© Copyright 2014–2014 Digi International Inc. All rights reserved.