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
.ATCommand
public 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
,
ATCommandStatus
public 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
.ATCommand
public 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
,
ATCommandStatus
public ATCommand getCommand()
ATCommand
public byte[] getResponse()
null
if there is not response data.public ATCommandStatus getResponseStatus()
ATCommandStatus
public String getResponseString()
null
if there
is not response data.© Copyright 2014–2014 Digi International Inc. All rights reserved.