Direct-BT  2.3.1
Direct-BT - Direct Bluetooth Programming.
Public Member Functions | List of all members
org.direct_bt.BTGattDesc Interface Reference

Provides access to Bluetooth GATT descriptor. More...

Inheritance diagram for org.direct_bt.BTGattDesc:
Collaboration diagram for org.direct_bt.BTGattDesc:

Public Member Functions

byte[] readValue ()
 Reads the value of this descriptor. More...
 
boolean writeValue (byte[] argValue) throws BTException
 Writes the value of this descriptor. More...
 
String getUUID ()
 Get the UUID of this descriptor. More...
 
BTGattChar getCharacteristic ()
 Returns the characteristic to which this descriptor belongs to. More...
 
byte[] getValue ()
 Returns the cached value of this descriptor, if any. More...
 
- Public Member Functions inherited from org.direct_bt.BTObject
BTType getBluetoothType ()
 Returns the BluetoothType of this object. More...
 
boolean equals (Object obj)
 
int hashCode ()
 
void close ()
 Release the native memory associated with this object The object should not be used following a call to close. More...
 

Detailed Description

Provides access to Bluetooth GATT descriptor.

See also
Bluetooth Specification
BlueZ GATT API

Definition at line 37 of file BTGattDesc.java.

Member Function Documentation

◆ getCharacteristic()

BTGattChar org.direct_bt.BTGattDesc.getCharacteristic ( )

Returns the characteristic to which this descriptor belongs to.

Returns
The characteristic.

Implemented in jau.direct_bt.DBTGattDesc.

◆ getUUID()

String org.direct_bt.BTGattDesc.getUUID ( )

Get the UUID of this descriptor.

Returns
The 128 byte UUID of this descriptor, NULL if an error occurred

Implemented in jau.direct_bt.DBTGattDesc.

◆ getValue()

byte [] org.direct_bt.BTGattDesc.getValue ( )

Returns the cached value of this descriptor, if any.

Returns
The cached value of this descriptor.

Implemented in jau.direct_bt.DBTGattDesc.

◆ readValue()

byte [] org.direct_bt.BTGattDesc.readValue ( )

Reads the value of this descriptor.

Returns
A vector<uchar> containing data from this descriptor

Implemented in jau.direct_bt.DBTGattDesc.

◆ writeValue()

boolean org.direct_bt.BTGattDesc.writeValue ( byte[]  argValue) throws BTException

Writes the value of this descriptor.

Parameters
[in]arg_valueThe data as vector<uchar> to be written packed in a GBytes struct
Returns
TRUE if value was written succesfully

Implemented in jau.direct_bt.DBTGattDesc.


The documentation for this interface was generated from the following file: