public static class BleServer.ConnectionFailListener.ConnectionFailEvent extends BleNode.ConnectionFailListener.ConnectionFailEvent implements UsesCustomNull
BleServer.ConnectionFailListener.onEvent(ConnectionFailEvent)
to provide more info about how/why the connection failed.attemptTime_latest, attemptTime_total, autoConnectUsage, failureCountSoFar, gattStatus
public BleServer server()
BleServer
this BleServer.ConnectionFailListener.ConnectionFailEvent
is for.public BluetoothDevice nativeDevice()
BluetoothDevice
client this BleServer.ConnectionFailListener.ConnectionFailEvent
is for.public String macAddress()
server()
.public BleServer.ConnectionFailListener.Status status()
public BleServer.ConnectionFailListener.ConnectionFailEvent[] history()
BleServer.ConnectionFailListener.ConnectionFailEvent
instances returned through
BleServer.ConnectionFailListener.onEvent(ConnectionFailEvent)
since the first call to BleDevice.connect()
,
including the current instance. Thus this list will always have at least a length of one (except if isNull()
is true
).
The list length is "reset" back to one whenever a BleDeviceState.CONNECTING_OVERALL
operation completes, either
through becoming BleDeviceState.INITIALIZED
, or BleDeviceState.DISCONNECTED
for good.public boolean isNull()
BleServer.ConnectionFailListener.ConnectionFailEvent
instance is a "dummy" value. For now used for
BleNodeConfig.ReconnectFilter.ReconnectEvent.connectionFailEvent()
in certain situations.isNull
in interface UsesCustomNull
public boolean shouldBeReportedToUser()