public interface CommandResponseHandler
CommandResponseHandlerinterface 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
CommandResponseHandler should not throw any unchecked exception. A compliant implementation of this
specification MUST catch unchecked exceptions that may be thrown by a
java.lang.String processResponse(ATDevice atDevice, java.lang.String response)
ATDeviceinstance issuing the response.
response- the response to handle or
nullif the response was too long or in case of an un-handled error.
nullif a final result code was received.
Copyright © 2012, 2015, Oracle and/or its affiliates. All rights reserved.