Direct-BT v3.3.0-1-gc2d430c
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)
 
final DBTGattChar getCharacteristic ()
 Returns the characteristic to which this descriptor belongs to. More...
 
final short getHandle ()
 Characteristic Descriptor Handle. More...
 
String getUUID ()
 Get the UUID of this descriptor. 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 String toString ()
 
final boolean writeValue (final byte[] value) throws BTException
 Writes the value of this descriptor. More...
 
- Public Member Functions inherited from jau.direct_bt.DBTObject
synchronized void close ()
 Release the native memory associated with this object The object should not be used following a call to close. More...
 
abstract boolean equals (final Object obj)
 
final int hashCode ()
 
void close ()
 Release the native memory associated with this object The object should not be used following a call to close. More...
 
boolean equals (Object obj)
 
int hashCode ()
 
BTGattChar getCharacteristic ()
 Returns the characteristic to which this descriptor belongs to. More...
 
String getUUID ()
 Get the UUID of this descriptor. More...
 
byte[] getValue ()
 Returns the cached value of this descriptor, if any. More...
 
byte[] readValue ()
 Reads the value of this descriptor. More...
 
String toString ()
 
boolean writeValue (byte[] argValue) throws BTException
 Writes the value of this descriptor. More...
 

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 33 of file DBTGattDesc.java.

Member Function Documentation

◆ 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 69 of file DBTGattDesc.java.

◆ equals()

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

Reimplemented from jau.direct_bt.DBTObject.

Definition at line 77 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 87 of file DBTGattDesc.java.

Here is the caller graph for this function:

◆ 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 90 of file DBTGattDesc.java.

◆ 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 93 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 96 of file DBTGattDesc.java.

◆ 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 103 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 117 of file DBTGattDesc.java.

◆ toString()

final String jau.direct_bt.DBTGattDesc.toString ( )

Implements org.direct_bt.BTGattDesc.

Definition at line 120 of file DBTGattDesc.java.

◆ 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.


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