ProtocolInitializationStateMachine

public class ProtocolInitializationStateMachine extends Object implements StateMachine

State machine for handling the protocol initialization phase.

Constructors

ProtocolInitializationStateMachine

public ProtocolInitializationStateMachine(Peripheral peripheral, RequiredCharacteristics requiredCharacteristics)

Creates a new instance of ProtocolInitializationStateMachine.

Parameters

Name Description
Peripheral peripheral
RequiredCharacteristics requiredCharacteristics

Methods

getState

public Signal<InitializationState> getState()

ReturnValue

Name Description
Signal<InitializationState>

onStateEvent

public void onStateEvent(ConnectState state)

Parameters

Name Description
ConnectState state

ReturnValue

Name Description
void

startNegotiation

public void startNegotiation()

Starts negotiation with the tag.

ReturnValue

Name Description
void

destroy

public void destroy()

ReturnValue

Name Description
void