public interface UnsolicitedResponseHandler
UnsolicitedResponseHandlerinterface defines methods for handling unsolicited result code responses from an AT device. Unsolicited result codes (such as
RING) indicate the occurrence of an event not directly associated with the issuance of an AT command. To receive unsolicited result codes an
UnsolicitedResponseHandlerinstance must be registered with the AT device using the
UnsolicitedResponseHandlershould not throw any unchecked exception. A compliant implementation of this specification MUST catch unchecked exceptions that may be thrown by a
void processResponse(ATDevice atDevice, java.lang.String code)
ATDeviceinstance issuing the unsolicited result code.
code- the unsolicited result code to handle.
Copyright © 2012, 2014, Oracle and/or its affiliates. All rights reserved.