Enum BLECallbacks.Error

  • java.lang.Object
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<BLECallbacks.Error>
Enclosing interface:
BLECallbacks

public static enum BLECallbacks.Error
extends java.lang.Enum<BLECallbacks.Error>

Enum Constant Summary

Enum Constant and Description
CHAR_READ_FAILED 
CHAR_WRITE_FAILED 
CONNECT_FAILED 
CONNECT_WITHOUT_REQUEST 
DATA_READ_FAILED 
DATA_WRITE_FAILED 
DISCONNECT_WITHOUT_REQUEST 
INSUFFICIENT_ENCRYPTION 
INVALID_MODE 
MODE_READ_FAILED 
MODE_WRITE_FAILED 
NO_CONNECTION_FOUND 
NO_MODE_CHARACTERISTIC 
NO_RX_CHARACTERISTIC 
NO_TX_CHARACTERISTIC 
NULL_CHAR_ON_CALLBACK 
NULL_GATT_ON_CALLBACK 
SCAN_FAILED 
SERVICE_DISCOVERY_FAILED 
SET_NOTIFY_FAILED 
SET_OTA_CONTROL_NOTIFY_FAILED 
SET_TX_NOTIFY_FAILED 
VERSION_READ_FAILED 

Method Summary

Modifier and Type Method and Description
static BLECallbacks.Error valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
static BLECallbacks.Error[] values()
Returns an array containing the constants of this enum type, in the order they are declared.
  • Methods inherited from class java.lang.Enum

    compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
  • Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

Enum Constant Detail

  • DISCONNECT_WITHOUT_REQUEST

    public static final BLECallbacks.Error DISCONNECT_WITHOUT_REQUEST
  • SET_OTA_CONTROL_NOTIFY_FAILED

    public static final BLECallbacks.Error SET_OTA_CONTROL_NOTIFY_FAILED
  • SERVICE_DISCOVERY_FAILED

    public static final BLECallbacks.Error SERVICE_DISCOVERY_FAILED

Method Detail

  • values

    public static BLECallbacks.Error[] values()
    Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
    for (BLECallbacks.Error c : BLECallbacks.Error.values())
        System.out.println(c);
    
    Returns:
    an array containing the constants of this enum type, in the order they are declared
  • valueOf

    public static BLECallbacks.Error valueOf(java.lang.String name)
    Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
    Parameters:
    name - the name of the enum constant to be returned.
    Returns:
    the enum constant with the specified name
    Throws:
    java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
    java.lang.NullPointerException - if the argument is null