public final class BleStatuses
extends java.lang.Object
public
but use the @hide annotation,
or they are not public
in the first place, or they can only be found by Googling
for native C/C++ library code.
BluetoothDevice
and BluetoothGatt
for more information.
GATT_
members here are copy/pasted from
https://android.googlesource.com/platform/external/bluetooth/bluedroid/+/android-4.3_r1.1/stack/include/gatt_api.hModifier and Type | Field and Description |
---|---|
static int |
ADVERTISE_ANDROID_VERSION_NOT_SUPPORTED
Status code for (@link BleServer.AdvertiseListener.AdvertisingEvent#status} when trying to advertise on
a device which isn't running an android OS of Lollipop or higher.
|
static int |
ADVERTISE_FAILED_ALREADY_STARTED
Failed to start advertising as the advertising is already started.
|
static int |
ADVERTISE_FAILED_DATA_TOO_LARGE
Failed to start advertising as the advertise data to be broadcasted is larger than 31 bytes.
|
static int |
ADVERTISE_FAILED_FEATURE_UNSUPPORTED
This feature is not supported on this platform.
|
static int |
ADVERTISE_FAILED_INTERNAL_ERROR
Operation failed due to an internal error.
|
static int |
ADVERTISE_FAILED_TOO_MANY_ADVERTISERS
Failed to start advertising because no advertising instance is available.
|
static int |
ADVERTISE_SUCCESS
Status code used for
AdvertisingListener.AdvertisingEvent.status() when advertising has been
successfully started. |
static int |
AUTH_RETRY_STATE_IDLE |
static int |
AUTH_RETRY_STATE_MITM |
static int |
AUTH_RETRY_STATE_NO_MITM |
static int |
BOND_FAIL_REASON_NOT_APPLICABLE
Used on
BondListener.BondEvent.failReason() when BondListener.BondEvent.status()
isn't applicable, for example BondListener.Status.SUCCESS . |
static int |
BOND_FAIL_REASON_NOT_AVAILABLE
Used when attempting to bond on a device whose API level is less than 19, or does not have access to android's
BluetoothDevice.createBond() method. |
static int |
BOND_SUCCESS
A bond attempt succeeded.
|
static int |
CONN_CANCEL |
static int |
CONN_FAIL_ESTABLISH |
static int |
CONN_LMP_TIMEOUT |
static int |
CONN_NO_RESOURCES |
static int |
CONN_SUCCESS |
static int |
CONN_TERMINATE_LOCAL_HOST |
static int |
CONN_TERMINATE_PEER_USER |
static int |
CONN_TIMEOUT |
static int |
DEVICE_BOND_BONDED
Device is currently bonded.
|
static int |
DEVICE_BOND_BONDING
Device is in the process of bonding.
|
static int |
DEVICE_BOND_UNBONDED
Device is not bonded.
|
static int |
DEVICE_CONNECTED
Indicates the device is connected.
|
static int |
DEVICE_CONNECTING
Indicates the device is connecting.
|
static int |
DEVICE_DISCONNECTED
Indicates the device is disconnected.
|
static int |
DEVICE_DISCONNECTING
Indicates the device is disconnecting.
|
static int |
DEVICE_ERROR
Generic device error.
|
static int |
GATT_AUTH_FAIL |
static int |
GATT_BUSY |
static int |
GATT_CMD_STARTED |
static int |
GATT_CMD_WRITE |
static int |
GATT_DB_FULL |
static int |
GATT_ENCRYPED_MITM |
static int |
GATT_ENCRYPED_NO_MITM |
static int |
GATT_ERR_UNLIKELY |
static int |
GATT_ERROR |
static int |
GATT_HANDLE_VALUE_CONF |
static int |
GATT_HANDLE_VALUE_IND |
static int |
GATT_HANDLE_VALUE_NOTIF |
static int |
GATT_ILLEGAL_PARAMETER |
static int |
GATT_INSUF_AUTHENTICATION |
static int |
GATT_INSUF_AUTHORIZATION |
static int |
GATT_INSUF_ENCRYPTION |
static int |
GATT_INSUF_KEY_SIZE |
static int |
GATT_INSUF_RESOURCE |
static int |
GATT_INTERNAL_ERROR |
static int |
GATT_INVALID_ATTR_LEN |
static int |
GATT_INVALID_CFG |
static int |
GATT_INVALID_HANDLE |
static int |
GATT_INVALID_OFFSET |
static int |
GATT_INVALID_PDU |
static int |
GATT_MORE |
static int |
GATT_NO_RESOURCES |
static int |
GATT_NOT_ENCRYPTED |
static int |
GATT_NOT_FOUND |
static int |
GATT_NOT_LONG |
static int |
GATT_OP_CODE_MAX |
static int |
GATT_PENDING |
static int |
GATT_PREPARE_Q_FULL |
static int |
GATT_READ_NOT_PERMIT |
static int |
GATT_REQ_EXEC_WRITE |
static int |
GATT_REQ_FIND_INFO |
static int |
GATT_REQ_FIND_TYPE_VALUE |
static int |
GATT_REQ_MTU |
static int |
GATT_REQ_NOT_SUPPORTED |
static int |
GATT_REQ_PREPARE_WRITE |
static int |
GATT_REQ_READ |
static int |
GATT_REQ_READ_BLOB |
static int |
GATT_REQ_READ_BY_GRP_TYPE |
static int |
GATT_REQ_READ_BY_TYPE |
static int |
GATT_REQ_READ_MULTI |
static int |
GATT_REQ_WRITE |
static int |
GATT_RSP_ERROR |
static int |
GATT_RSP_EXEC_WRITE |
static int |
GATT_RSP_FIND_INFO |
static int |
GATT_RSP_FIND_TYPE_VALUE |
static int |
GATT_RSP_MTU |
static int |
GATT_RSP_PREPARE_WRITE |
static int |
GATT_RSP_READ |
static int |
GATT_RSP_READ_BLOB |
static int |
GATT_RSP_READ_BY_GRP_TYPE |
static int |
GATT_RSP_READ_BY_TYPE |
static int |
GATT_RSP_READ_MULTI |
static int |
GATT_RSP_WRITE |
static int |
GATT_SERVICE_STARTED |
static int |
GATT_SIGN_CMD_WRITE |
static int |
GATT_STATUS_NOT_APPLICABLE
Status code used for
ReadWriteListener.ReadWriteEvent.gattStatus() when the operation failed at a point where a
gatt status from the underlying stack isn't provided or applicable. |
static int |
GATT_SUCCESS |
static int |
GATT_UNSUPPORT_GRP_TYPE |
static int |
GATT_WRITE_NOT_PERMIT |
static int |
GATT_WRONG_STATE |
static int |
PROFILE_GATT
Indicates a GATT profile
Maps to
BluetoothProfile.GATT |
static int |
SERVER_CONNECTED
Indicates the server is connected.
|
static int |
SERVER_CONNECTING
Indicates the server is connecting.
|
static int |
SERVER_DISCONNECTED
Indicates the server is disconnected.
|
static int |
SERVER_DISCONNECTING
Indicates the server is disconnecting.
|
static int |
STATE_BLE_ON
Indicates the local Bluetooth adapter is in LE only mode.
|
static int |
STATE_BLE_TURNING_OFF
Indicates the local Bluetooth adapter is turning off LE only mode.
|
static int |
STATE_BLE_TURNING_ON
Indicates the local Bluetooth adapter is turning Bluetooth LE mode on.
|
static int |
STATE_OFF
Indicates the local Bluetooth adapter is off.
|
static int |
STATE_ON
Indicates the local Bluetooth adapter is on, and ready for use.
|
static int |
STATE_TURNING_OFF
Indicates the local Bluetooth adapter is turning off.
|
static int |
STATE_TURNING_ON
Indicates the local Bluetooth adapter is turning on.
|
static int |
UNBOND_REASON_AUTH_CANCELED
A bond attempt failed because we canceled the bonding process.
|
static int |
UNBOND_REASON_AUTH_FAILED
A bond attempt failed because pins did not match, or remote device did not respond to pin request in time.
|
static int |
UNBOND_REASON_AUTH_REJECTED
A bond attempt failed because the other side explicitly rejected bonding.
|
static int |
UNBOND_REASON_AUTH_TIMEOUT
A bond attempt failed because of authentication timeout.
|
static int |
UNBOND_REASON_DISCOVERY_IN_PROGRESS
A bond attempt failed because a discovery is in progress.
|
static int |
UNBOND_REASON_REMOTE_AUTH_CANCELED
A bond attempt failed because we received an Authentication Cancel by remote end.
|
static int |
UNBOND_REASON_REMOTE_DEVICE_DOWN
A bond attempt failed because we could not contact the remote device.
|
static int |
UNBOND_REASON_REMOVED
An existing bond was explicitly revoked.
|
static int |
UNBOND_REASON_REPEATED_ATTEMPTS
A bond attempt failed because of repeated attempts.
|
Constructor and Description |
---|
BleStatuses() |
public static final int GATT_STATUS_NOT_APPLICABLE
ReadWriteListener.ReadWriteEvent.gattStatus()
when the operation failed at a point where a
gatt status from the underlying stack isn't provided or applicable.
ReconnectFilter.ConnectFailEvent.gattStatus()
for when the failure didn't involve the gatt layer.public static final int BOND_FAIL_REASON_NOT_APPLICABLE
BondListener.BondEvent.failReason()
when BondListener.BondEvent.status()
isn't applicable, for example BondListener.Status.SUCCESS
.public static final int BOND_FAIL_REASON_NOT_AVAILABLE
BluetoothDevice.createBond()
method.public static final int ADVERTISE_SUCCESS
AdvertisingListener.AdvertisingEvent.status()
when advertising has been
successfully started.public static final int ADVERTISE_ANDROID_VERSION_NOT_SUPPORTED
public static final int BOND_SUCCESS
public static final int UNBOND_REASON_AUTH_FAILED
public static final int UNBOND_REASON_AUTH_REJECTED
public static final int UNBOND_REASON_AUTH_CANCELED
public static final int UNBOND_REASON_REMOTE_DEVICE_DOWN
public static final int UNBOND_REASON_DISCOVERY_IN_PROGRESS
public static final int UNBOND_REASON_AUTH_TIMEOUT
public static final int UNBOND_REASON_REPEATED_ATTEMPTS
public static final int UNBOND_REASON_REMOTE_AUTH_CANCELED
public static final int UNBOND_REASON_REMOVED
public static final int AUTH_RETRY_STATE_IDLE
public static final int AUTH_RETRY_STATE_NO_MITM
public static final int AUTH_RETRY_STATE_MITM
public static final int ADVERTISE_FAILED_DATA_TOO_LARGE
AdvertiseCallback.ADVERTISE_FAILED_DATA_TOO_LARGE
public static final int ADVERTISE_FAILED_TOO_MANY_ADVERTISERS
AdvertiseCallback.ADVERTISE_FAILED_TOO_MANY_ADVERTISERS
public static final int ADVERTISE_FAILED_ALREADY_STARTED
AdvertiseCallback.ADVERTISE_FAILED_ALREADY_STARTED
public static final int ADVERTISE_FAILED_INTERNAL_ERROR
AdvertiseCallback.ADVERTISE_FAILED_INTERNAL_ERROR
public static final int ADVERTISE_FAILED_FEATURE_UNSUPPORTED
AdvertiseCallback.ADVERTISE_FAILED_FEATURE_UNSUPPORTED
public static final int STATE_OFF
public static final int STATE_TURNING_ON
STATE_ON
before attempting to
use the adapter.public static final int STATE_ON
public static final int STATE_TURNING_OFF
public static final int STATE_BLE_TURNING_ON
public static final int STATE_BLE_ON
public static final int STATE_BLE_TURNING_OFF
public static final int SERVER_CONNECTED
BluetoothProfile.STATE_CONNECTED
public static final int SERVER_CONNECTING
BluetoothProfile.STATE_CONNECTING
public static final int SERVER_DISCONNECTED
BluetoothProfile.STATE_DISCONNECTED
public static final int SERVER_DISCONNECTING
BluetoothProfile.STATE_DISCONNECTING
public static final int DEVICE_CONNECTED
BluetoothProfile.STATE_CONNECTED
public static final int DEVICE_CONNECTING
BluetoothProfile.STATE_CONNECTING
public static final int DEVICE_DISCONNECTED
BluetoothProfile.STATE_DISCONNECTED
public static final int DEVICE_DISCONNECTING
BluetoothProfile.STATE_DISCONNECTING
public static final int DEVICE_ERROR
BluetoothDevice.ERROR
public static final int DEVICE_BOND_BONDING
BluetoothDevice.BOND_BONDING
public static final int DEVICE_BOND_BONDED
BluetoothDevice.BOND_BONDED
public static final int DEVICE_BOND_UNBONDED
BluetoothDevice.BOND_NONE
public static final int PROFILE_GATT
BluetoothProfile.GATT
public static final int GATT_SUCCESS
public static final int GATT_INVALID_HANDLE
public static final int GATT_READ_NOT_PERMIT
public static final int GATT_WRITE_NOT_PERMIT
public static final int GATT_INVALID_PDU
public static final int GATT_INSUF_AUTHENTICATION
public static final int GATT_REQ_NOT_SUPPORTED
public static final int GATT_INVALID_OFFSET
public static final int GATT_INSUF_AUTHORIZATION
public static final int GATT_PREPARE_Q_FULL
public static final int GATT_NOT_FOUND
public static final int GATT_NOT_LONG
public static final int GATT_INSUF_KEY_SIZE
public static final int GATT_INVALID_ATTR_LEN
public static final int GATT_ERR_UNLIKELY
public static final int GATT_INSUF_ENCRYPTION
public static final int GATT_UNSUPPORT_GRP_TYPE
public static final int GATT_INSUF_RESOURCE
public static final int GATT_ILLEGAL_PARAMETER
public static final int GATT_NO_RESOURCES
public static final int GATT_INTERNAL_ERROR
public static final int GATT_WRONG_STATE
public static final int GATT_DB_FULL
public static final int GATT_BUSY
public static final int GATT_ERROR
public static final int GATT_CMD_STARTED
public static final int GATT_PENDING
public static final int GATT_AUTH_FAIL
public static final int GATT_MORE
public static final int GATT_INVALID_CFG
public static final int GATT_SERVICE_STARTED
public static final int GATT_ENCRYPED_MITM
public static final int GATT_ENCRYPED_NO_MITM
public static final int GATT_NOT_ENCRYPTED
public static final int GATT_RSP_ERROR
public static final int GATT_REQ_MTU
public static final int GATT_RSP_MTU
public static final int GATT_REQ_FIND_INFO
public static final int GATT_RSP_FIND_INFO
public static final int GATT_REQ_FIND_TYPE_VALUE
public static final int GATT_RSP_FIND_TYPE_VALUE
public static final int GATT_REQ_READ_BY_TYPE
public static final int GATT_RSP_READ_BY_TYPE
public static final int GATT_REQ_READ
public static final int GATT_RSP_READ
public static final int GATT_REQ_READ_BLOB
public static final int GATT_RSP_READ_BLOB
public static final int GATT_REQ_READ_MULTI
public static final int GATT_RSP_READ_MULTI
public static final int GATT_REQ_READ_BY_GRP_TYPE
public static final int GATT_RSP_READ_BY_GRP_TYPE
public static final int GATT_REQ_WRITE
public static final int GATT_RSP_WRITE
public static final int GATT_CMD_WRITE
public static final int GATT_REQ_PREPARE_WRITE
public static final int GATT_RSP_PREPARE_WRITE
public static final int GATT_REQ_EXEC_WRITE
public static final int GATT_RSP_EXEC_WRITE
public static final int GATT_HANDLE_VALUE_NOTIF
public static final int GATT_HANDLE_VALUE_IND
public static final int GATT_HANDLE_VALUE_CONF
public static final int GATT_SIGN_CMD_WRITE
public static final int GATT_OP_CODE_MAX
public static final int CONN_SUCCESS
public static final int CONN_NO_RESOURCES
public static final int CONN_TIMEOUT
public static final int CONN_TERMINATE_PEER_USER
public static final int CONN_TERMINATE_LOCAL_HOST
public static final int CONN_FAIL_ESTABLISH
public static final int CONN_LMP_TIMEOUT
public static final int CONN_CANCEL