The listener is used to observe the Link events.
Link's state has changed
void onStateChanged(Link link, Link.State newState, Link.State oldState);
The link that had a state change
The new link state
The old link state
The authentication failed
void onAuthenticationFailed(Link link, AuthenticationError error);
The link for which the authentication failed
The authentication error
Link has received a command
void onCommandReceived(Link link, Bytes bytes);
The link that received the command
The commands bytes that can correspond to the Auto API.