public static class ServerStateListener.StateEvent extends State.ChangeEvent<BleServerState>
Modifier and Type | Method and Description |
---|---|
int |
gattStatus()
The change in gattStatus that may have precipitated the state change, or
BleStatuses.GATT_STATUS_NOT_APPLICABLE . |
java.lang.String |
macAddress()
Returns the mac address of the client that's undergoing the state change with this
server() . |
BleServer |
server()
The server undergoing the state change.
|
java.lang.String |
toString() |
didEnter, didEnterAll, didEnterAny, didExit, didExitAll, didExitAny, enterMask, exitMask, getIntent, intentMask, isFor, isForAll, isForAny, newStateBits, oldStateBits
public final BleServer server()
public final java.lang.String macAddress()
server()
.public final int gattStatus()
BleStatuses.GATT_STATUS_NOT_APPLICABLE
.
For example if State.ChangeEvent.didEnter(State)
with BleServerState.DISCONNECTED
is true
and
State.ChangeEvent.didExit(State)
with BleServerState.CONNECTING
is also true
then gattStatus()
may be greater
than zero and give some further hint as to why the connection failed.public final java.lang.String toString()
toString
in class java.lang.Object