public abstract static class ReconnectFilter.ConnectFailEvent extends Event implements UsesCustomNull
ReconnectFilter.onConnectFailed(ConnectFailEvent)
and ReconnectFilter.onConnectFailed(ConnectFailEvent)
to provide more info about how/why a connection failed.Modifier and Type | Method and Description |
---|---|
Interval |
attemptTime_latest()
How long the last connection attempt took before failing.
|
Interval |
attemptTime_total()
How long it's been since
BleDevice.connect() (or overloads) were initially called. |
ReconnectFilter.AutoConnectUsage |
autoConnectUsage()
Whether
autoConnect=true was passed to BluetoothDevice.connectGatt(Context, boolean, android.bluetooth.BluetoothGattCallback) . |
int |
failureCountSoFar()
The failure count so far.
|
int |
gattStatus()
The gattStatus returned, if applicable, from native callbacks like
BluetoothGattCallback.onConnectionStateChange(BluetoothGatt, int, int)
or BluetoothGattCallback.onServicesDiscovered(BluetoothGatt, int) . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isNull
public int failureCountSoFar()
public Interval attemptTime_latest()
public Interval attemptTime_total()
BleDevice.connect()
(or overloads) were initially called.public int gattStatus()
BluetoothGattCallback.onConnectionStateChange(BluetoothGatt, int, int)
or BluetoothGattCallback.onServicesDiscovered(BluetoothGatt, int)
.
If not applicable, for example if DeviceReconnectFilter.ConnectFailEvent.status()
is DeviceReconnectFilter.Status.EXPLICIT_DISCONNECT
,
then this is set to BleStatuses.GATT_STATUS_NOT_APPLICABLE
.
ReadWriteListener.ReadWriteEvent.gattStatus()
for more information about gatt status codes in general.public ReconnectFilter.AutoConnectUsage autoConnectUsage()
autoConnect=true
was passed to BluetoothDevice.connectGatt(Context, boolean, android.bluetooth.BluetoothGattCallback)
.
See more discussion at BleNodeConfig.alwaysUseAutoConnect
.