public interface CommandResponseHandler
CommandResponseHandler interface defines methods for handling responses to AT commands.
When commands are submitted asynchronously using the
sendCommand(String, CommandResponseHandler) a CommandResponseHandler instance must be provided to handle the
response when available.
Only information text, final result code and intermediate result code responses can be handled by a
CommandResponseHandler instance. Unsolicited result code responses can be handled by a
UnsolicitedResponseHandler instance.ATDevice| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
processResponse(ATDevice atDevice,
java.lang.String response)
Invoked to process an information text, final result code or intermediate result code response.
|
java.lang.String processResponse(ATDevice atDevice, java.lang.String response)
atDevice - the ATDevice instance issuing the response.response - the response to handle or null if the response was too long or in case of an un-handled error.null if no additional input is required (such as final result code was received).Copyright (c) 1990, 2013, Oracle and/or its affiliates. All rights reserved.