public interface CommandResponseHandler
CommandResponseHandlerinterface defines methods for handling responses to AT commands. When commands are submitted asynchronously using the
CommandResponseHandlerinstance 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
CommandResponseHandlerinstance. Unsolicited result code responses can be handled by a
CommandResponseHandlershould 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 no additional input is required (such as final result code was received).
Copyright © 2012, 2013, Oracle and/or its affiliates. All rights reserved.