Example usage for Java android.bluetooth BluetoothGatt fields, constructors, methods, implement or subclass
The text is from its open source code.
int | GATT_SUCCESS A GATT operation completed successfully |
int | GATT_READ_NOT_PERMITTED GATT read operation is not permitted |
int | GATT_WRITE_NOT_PERMITTED GATT write operation is not permitted |
int | GATT_INSUFFICIENT_AUTHENTICATION Insufficient authentication for a given operation |
int | GATT_REQUEST_NOT_SUPPORTED The given request is not supported |
int | GATT_INSUFFICIENT_ENCRYPTION Insufficient encryption for a given operation |
int | GATT_INVALID_OFFSET A read or write operation was requested with an invalid offset |
int | GATT_INVALID_ATTRIBUTE_LENGTH A write operation exceeds the maximum length of the attribute |
int | GATT_CONNECTION_CONGESTED A remote device connection is congested. |
int | GATT_FAILURE A GATT operation failed, errors other than the above |
boolean | beginReliableWrite() Initiates a reliable write transaction for a given remote device. |
void | close() Close this Bluetooth GATT client. |
boolean | connect() Connect back to remote device. |
void | disconnect() Disconnects an established connection, or cancels a connection attempt currently in progress. |
boolean | discoverServices() Discovers services offered by a remote device as well as their characteristics and descriptors. |
boolean | executeReliableWrite() Executes a reliable write transaction for a given remote device. |
Class> | getClass() Returns the runtime class of this Object . |
BluetoothDevice | getDevice() Return the remote bluetooth device this GATT client targets to |
BluetoothGattService | getService(UUID uuid) Returns a BluetoothGattService , if the requested UUID is supported by the remote device. |
List | getServices() Returns a list of GATT services offered by the remote device. |
boolean | readCharacteristic(BluetoothGattCharacteristic characteristic) Reads the requested characteristic from the associated remote device. |
boolean | readDescriptor(BluetoothGattDescriptor descriptor) Reads the value for a given descriptor from the associated remote device. |
boolean | requestConnectionPriority(int connectionPriority) Request a connection parameter update. |
boolean | requestMtu(int mtu) Request an MTU size used for a given connection. |
boolean | setCharacteristicNotification(BluetoothGattCharacteristic characteristic, boolean enable) Enable or disable notifications/indications for a given characteristic. |
boolean | writeCharacteristic(BluetoothGattCharacteristic characteristic) Writes a given characteristic and its values to the associated remote device. |
boolean | writeDescriptor(BluetoothGattDescriptor descriptor) Write the value of a given descriptor to the associated remote device. |