Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
|
Representing a Gatt Characteristic object from the GATT server perspective. More...
Classes | |
class | UUID16 |
Selected standard GATT characteristic numbers in UUID16 format as defined. More... | |
Public Member Functions | |
DBGattChar (final String value_type_, final GattCharPropertySet properties_, final List< DBGattDesc > descriptors_, final DBGattValue value_) | |
native void | bzero () |
Fill value with zero bytes. More... | |
void | close () |
boolean | equals (final Object other) |
void | finalize () |
DBGattDesc | getClientCharConfig () |
final List< DBGattDesc > | getDescriptors () |
List of Characteristic Descriptions. More... | |
native short | getEndHandle () |
Characteristic end handle, inclusive. More... | |
native short | getHandle () |
Characteristic Handle of this instance. More... | |
GattCharPropertySet | getProperties () |
DBGattDesc | getUserDescription () |
native DBGattValue | getValue () |
Return a copy of this characteristic's native DBGattValue value. More... | |
native short | getValueHandle () |
Characteristics Value Handle. More... | |
String | getValueType () |
boolean | hasProperties (final GattCharPropertySet.Type bit) |
native boolean | setValue (final byte[] source, final int source_pos, final int source_len, final int dest_pos) |
Set this characteristic's native value. More... | |
native String | toString () |
Public Attributes | |
final int | clientCharConfigIndex |
final int | userDescriptionIndex |
Representing a Gatt Characteristic object from the GATT server perspective.
A list of shared DBGattChar instances are passed at DBGattService construction and are retrievable via DBGattService::getChars().
See Direct-BT Overview.
BT Core Spec v5.2: Vol 3, Part G GATT: 3.3 Characteristic Definition
BT Core Spec v5.2: Vol 3, Part G GATT: 4.6.1 Discover All Characteristics of a Service
The handle represents a service's characteristics-declaration and the value the Characteristics Property, Characteristics Value Handle and Characteristics UUID.
Definition at line 45 of file DBGattChar.java.
org.direct_bt.DBGattChar.DBGattChar | ( | final String | value_type_, |
final GattCharPropertySet | properties_, | ||
final List< DBGattDesc > | descriptors_, | ||
final DBGattValue | value_ | ||
) |
native short org.direct_bt.DBGattChar.getHandle | ( | ) |
Characteristic Handle of this instance.
Attribute handles are unique for each device (server) (BT Core Spec v5.2: Vol 3, Part F Protocol..: 3.2.2 Attribute Handle).
native short org.direct_bt.DBGattChar.getEndHandle | ( | ) |
Characteristic end handle, inclusive.
Attribute handles are unique for each device (server) (BT Core Spec v5.2: Vol 3, Part F Protocol..: 3.2.2 Attribute Handle).
native short org.direct_bt.DBGattChar.getValueHandle | ( | ) |
Characteristics Value Handle.
Attribute handles are unique for each device (server) (BT Core Spec v5.2: Vol 3, Part F Protocol..: 3.2.2 Attribute Handle).
String org.direct_bt.DBGattChar.getValueType | ( | ) |
Definition at line 113 of file DBGattChar.java.
GattCharPropertySet org.direct_bt.DBGattChar.getProperties | ( | ) |
Definition at line 118 of file DBGattChar.java.
final List< DBGattDesc > org.direct_bt.DBGattChar.getDescriptors | ( | ) |
List of Characteristic Descriptions.
Definition at line 123 of file DBGattChar.java.
native DBGattValue org.direct_bt.DBGattChar.getValue | ( | ) |
Return a copy of this characteristic's native DBGattValue
value.
Its capacity defines the maximum writable variable length and its size defines the maximum writable fixed length.
native boolean org.direct_bt.DBGattChar.setValue | ( | final byte[] | source, |
final int | source_pos, | ||
final int | source_len, | ||
final int | dest_pos | ||
) |
Set this characteristic's native value.
Methods won't exceed the value's capacity if it is of hasVariableLength() or the value's size otherwise.
source | data to be written to this value |
source_len | length of the source data to be written |
dest_pos | position where the source data shall be written to the value |
void org.direct_bt.DBGattChar.close | ( | ) |
void org.direct_bt.DBGattChar.finalize | ( | ) |
Definition at line 201 of file DBGattChar.java.
boolean org.direct_bt.DBGattChar.hasProperties | ( | final GattCharPropertySet.Type | bit | ) |
Definition at line 205 of file DBGattChar.java.
native void org.direct_bt.DBGattChar.bzero | ( | ) |
Fill value with zero bytes.
DBGattDesc org.direct_bt.DBGattChar.getClientCharConfig | ( | ) |
DBGattDesc org.direct_bt.DBGattChar.getUserDescription | ( | ) |
Definition at line 219 of file DBGattChar.java.
boolean org.direct_bt.DBGattChar.equals | ( | final Object | other | ) |
Definition at line 227 of file DBGattChar.java.
native String org.direct_bt.DBGattChar.toString | ( | ) |
final int org.direct_bt.DBGattChar.clientCharConfigIndex |
Definition at line 147 of file DBGattChar.java.
final int org.direct_bt.DBGattChar.userDescriptionIndex |
Definition at line 150 of file DBGattChar.java.