Direct-BT
2.3.1
Direct-BT - Direct Bluetooth Programming.
|
Go to the documentation of this file.
29 package org.direct_bt;
31 import java.util.List;
65 final byte[] value,
final long timestamp);
76 final byte[] value,
final long timestamp,
77 final boolean confirmationSent);
139 throws IllegalStateException;
164 throws IllegalStateException;
190 throws IllegalStateException;
220 throws IllegalStateException;
String getUUID()
Get the UUID of this characteristic.
boolean getNotifying(final boolean enabledState[])
Returns true if notification for changes of this characteristic are activated.
BTGattDesc find(final String UUID)
Find a BluetoothGattDescriptor.
boolean configNotificationIndication(final boolean enableNotification, final boolean enableIndication, final boolean enabledState[])
BT Core Spec v5.2: Vol 3, Part G GATT: 3.3.3.3 Client Characteristic Configuration.
GattCharPropertySet getProperties()
Returns the properties of this characteristic.
boolean enableNotificationOrIndication(final boolean enabledState[])
BT Core Spec v5.2: Vol 3, Part G GATT: 3.3.3.3 Client Characteristic Configuration.
Provides access to Bluetooth GATT characteristic.
BTGattDesc find(final String UUID, final long timeoutMS)
Find a BluetoothGattDescriptor.
void indicationReceived(final BTGattChar charDecl, final byte[] value, final long timestamp, final boolean confirmationSent)
Called from native BLE stack, initiated by a received indication associated with the given BTGattChar...
BTGattChar event listener for notification and indication events.
boolean writeValue(byte[] argValue, boolean withResponse)
Writes the value of this characteristic, using one of the following methods depending on.
Provides access to Bluetooth GATT characteristic.
int removeAllAssociatedCharListener(final boolean disableIndicationNotification)
Disables the notification and/or indication for this characteristic BLE level if.
Provides access to Bluetooth GATT descriptor.
void disableValueNotifications()
Disables notifications of the value and unregisters the callback object passed through the correspond...
Bit mask of GATT Characteristic Properties.
boolean addCharListener(final Listener listener)
Add the given BTGattChar.Listener to the listener list if not already present.
List< BTGattDesc > getDescriptors()
Returns a list of BluetoothGattDescriptors this characteristic exposes.
BTGattService getService()
Returns the service to which this characteristic belongs to.
byte[] readValue()
Reads the value of this characteristic.
void notificationReceived(final BTGattChar charDecl, final byte[] value, final long timestamp)
Called from native BLE stack, initiated by a received notification associated with the given BTGattCh...