Java android.bluetooth BluetoothGatt fields, constructors, methods, implement or subclass

Example usage for Java android.bluetooth BluetoothGatt fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.bluetooth BluetoothGatt.

The text is from its open source code.

Field

intGATT_SUCCESS
A GATT operation completed successfully
intGATT_READ_NOT_PERMITTED
GATT read operation is not permitted
intGATT_WRITE_NOT_PERMITTED
GATT write operation is not permitted
intGATT_INSUFFICIENT_AUTHENTICATION
Insufficient authentication for a given operation
intGATT_REQUEST_NOT_SUPPORTED
The given request is not supported
intGATT_INSUFFICIENT_ENCRYPTION
Insufficient encryption for a given operation
intGATT_INVALID_OFFSET
A read or write operation was requested with an invalid offset
intGATT_INVALID_ATTRIBUTE_LENGTH
A write operation exceeds the maximum length of the attribute
intGATT_CONNECTION_CONGESTED
A remote device connection is congested.
intGATT_FAILURE
A GATT operation failed, errors other than the above

Method

booleanbeginReliableWrite()
Initiates a reliable write transaction for a given remote device.
voidclose()
Close this Bluetooth GATT client.
booleanconnect()
Connect back to remote device.
voiddisconnect()
Disconnects an established connection, or cancels a connection attempt currently in progress.
booleandiscoverServices()
Discovers services offered by a remote device as well as their characteristics and descriptors.
booleanexecuteReliableWrite()
Executes a reliable write transaction for a given remote device.
ClassgetClass()
Returns the runtime class of this Object .
BluetoothDevicegetDevice()
Return the remote bluetooth device this GATT client targets to
BluetoothGattServicegetService(UUID uuid)
Returns a BluetoothGattService , if the requested UUID is supported by the remote device.
ListgetServices()
Returns a list of GATT services offered by the remote device.
booleanreadCharacteristic(BluetoothGattCharacteristic characteristic)
Reads the requested characteristic from the associated remote device.
booleanreadDescriptor(BluetoothGattDescriptor descriptor)
Reads the value for a given descriptor from the associated remote device.
booleanrequestConnectionPriority(int connectionPriority)
Request a connection parameter update.
booleanrequestMtu(int mtu)
Request an MTU size used for a given connection.
booleansetCharacteristicNotification(BluetoothGattCharacteristic characteristic, boolean enable)
Enable or disable notifications/indications for a given characteristic.
booleanwriteCharacteristic(BluetoothGattCharacteristic characteristic)
Writes a given characteristic and its values to the associated remote device.
booleanwriteDescriptor(BluetoothGattDescriptor descriptor)
Write the value of a given descriptor to the associated remote device.