Direct-BT  2.3.1
Direct-BT - Direct Bluetooth Programming.
Public Member Functions | Protected Member Functions | List of all members
jau.direct_bt.DBTGattDesc Class Reference
Inheritance diagram for jau.direct_bt.DBTGattDesc:
Collaboration diagram for jau.direct_bt.DBTGattDesc:

Public Member Functions

synchronized void close ()
 Release the native memory associated with this object The object should not be used following a call to close. More...
 
boolean equals (final Object obj)
 
String getUUID ()
 Get the UUID of this descriptor. More...
 
BTType getBluetoothType ()
 Returns the BluetoothType of this object. More...
 
final BTGattDesc clone ()
 
final DBTGattChar getCharacteristic ()
 Returns the characteristic to which this descriptor belongs to. More...
 
final byte[] getValue ()
 Returns the cached value of this descriptor, if any. More...
 
final byte[] readValue ()
 Reads the value of this descriptor. More...
 
final boolean writeValue (final byte[] value) throws BTException
 Writes the value of this descriptor. More...
 
final short getHandle ()
 Characteristic Descriptor Handle. More...
 
final String toString ()
 
- Public Member Functions inherited from jau.direct_bt.DBTObject
final int hashCode ()
 

Protected Member Functions

native void deleteImpl (long nativeInstance)
 Deletes the native instance. More...
 
- Protected Member Functions inherited from jau.direct_bt.DBTObject
 DBTObject (final long nativeInstance, final int hashValue)
 
void finalize ()
 

Detailed Description

Definition at line 35 of file DBTGattDesc.java.

Member Function Documentation

◆ clone()

final BTGattDesc jau.direct_bt.DBTGattDesc.clone ( )

Reimplemented from jau.direct_bt.DBTObject.

Definition at line 97 of file DBTGattDesc.java.

◆ close()

synchronized void jau.direct_bt.DBTGattDesc.close ( )

Release the native memory associated with this object The object should not be used following a call to close.

Reimplemented from jau.direct_bt.DBTObject.

Definition at line 71 of file DBTGattDesc.java.

Here is the call graph for this function:

◆ deleteImpl()

native void jau.direct_bt.DBTGattDesc.deleteImpl ( long  nativeInstance)
protected

Deletes the native instance.

Called via delete() and at this point

  • this java reference has been removed from the native instance, i.e.
    JavaUplink
    's
    javaObjectRef = nullptr
  • the nativeInstance reference has been zeroed, but passed as argument for this final native deletion task.
Parameters
nativeInstancecopy of nativeInstance reference, which has been already zeroed.

Reimplemented from jau.direct_bt.DBTNativeDownlink.

◆ equals()

boolean jau.direct_bt.DBTGattDesc.equals ( final Object  obj)

Reimplemented from jau.direct_bt.DBTObject.

Definition at line 79 of file DBTGattDesc.java.

◆ getBluetoothType()

BTType jau.direct_bt.DBTGattDesc.getBluetoothType ( )

Returns the BluetoothType of this object.

Returns
The BluetoothType of this object

Implements org.direct_bt.BTObject.

Definition at line 92 of file DBTGattDesc.java.

◆ getCharacteristic()

final DBTGattChar jau.direct_bt.DBTGattDesc.getCharacteristic ( )

Returns the characteristic to which this descriptor belongs to.

Returns
The characteristic.

Implements org.direct_bt.BTGattDesc.

Definition at line 101 of file DBTGattDesc.java.

◆ getHandle()

final short jau.direct_bt.DBTGattDesc.getHandle ( )

Characteristic Descriptor Handle.

Attribute handles are unique for each device (server) (BT Core Spec v5.2: Vol 3, Part F Protocol..: 3.2.2 Attribute Handle).

Definition at line 128 of file DBTGattDesc.java.

◆ getUUID()

String jau.direct_bt.DBTGattDesc.getUUID ( )

Get the UUID of this descriptor.

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

Implements org.direct_bt.BTGattDesc.

Definition at line 89 of file DBTGattDesc.java.

Here is the caller graph for this function:

◆ getValue()

final byte [] jau.direct_bt.DBTGattDesc.getValue ( )

Returns the cached value of this descriptor, if any.

Returns
The cached value of this descriptor.

Implements org.direct_bt.BTGattDesc.

Definition at line 104 of file DBTGattDesc.java.

◆ readValue()

final byte [] jau.direct_bt.DBTGattDesc.readValue ( )

Reads the value of this descriptor.

Returns
A vector<uchar> containing data from this descriptor

Implements org.direct_bt.BTGattDesc.

Definition at line 107 of file DBTGattDesc.java.

◆ toString()

final String jau.direct_bt.DBTGattDesc.toString ( )

Definition at line 131 of file DBTGattDesc.java.

Here is the call graph for this function:

◆ writeValue()

final boolean jau.direct_bt.DBTGattDesc.writeValue ( final 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

Implements org.direct_bt.BTGattDesc.

Definition at line 114 of file DBTGattDesc.java.


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