def _handler_disconnected_configure(self, *args, **kwargs): """ """ next_state = None result = None try: InstrumentProtocol.configure(self, *args, **kwargs) except (TypeError, KeyError, InstrumentConnectionException, IndexError): result = InstErrorCode.INVALID_PARAMETER next_state = SBE37State.UNCONFIGURED return (next_state, result)
def _handler_unconfigured_configure(self, *args, **kwargs): """ """ next_state = None result = None try: InstrumentProtocol.configure(self, *args, **kwargs) except (TypeError, KeyError, InstrumentConnectionException, IndexError): result = InstErrorCode.INVALID_PARAMETER next_state = None # Everything worked, set next state. else: next_state = SBE37State.DISCONNECTED return (next_state, result)