public static enum UhOhListener.Remedy extends java.lang.Enum<UhOhListener.Remedy>
UhOhListener.UhOh
. This can be used as a proxy for the severity
of the issue.Enum Constant and Description |
---|
RECYCLE_CONNECTION
This remedy only applies to
UhOhListener.UhOh.CONNECTION_STILL_ALIVE . |
RESET_BLE
Calling
BleManager.reset() is probably in order. |
RESTART_PHONE
Might want to notify your user that a phone restart is in order.
|
WAIT_AND_SEE
Nothing you can really do, hopefully the library can soldier on.
|
Modifier and Type | Method and Description |
---|---|
static UhOhListener.Remedy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static UhOhListener.Remedy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UhOhListener.Remedy RECYCLE_CONNECTION
UhOhListener.UhOh.CONNECTION_STILL_ALIVE
. When this happens, we've found that some phones simply need to connect,
then disconnect, and the connection gets closed. However, other phones require you to unbond, then bond again, THEN connect and disconnect.
A long, stupid process for sure, but we found it to work almost 100% of the time.public static final UhOhListener.Remedy WAIT_AND_SEE
public static final UhOhListener.Remedy RESET_BLE
BleManager.reset()
is probably in order.BleManager.reset()
public static final UhOhListener.Remedy RESTART_PHONE
public static UhOhListener.Remedy[] values()
for (UhOhListener.Remedy c : UhOhListener.Remedy.values()) System.out.println(c);
public static UhOhListener.Remedy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null