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.DBTGattService Class Reference
Inheritance diagram for jau.direct_bt.DBTGattService:
Collaboration diagram for jau.direct_bt.DBTGattService:

Public Member Functions

final BTGattService clone ()
 
boolean equals (final Object obj)
 
BTGattChar findGattChar (final String char_uuid)
 Find a BTGattChar by its char_uuid. More...
 
final List< BTGattChargetChars ()
 Returns a list of BTGattChar this service exposes. More...
 
final BTDevice getDevice ()
 Returns the device to which this service belongs to. More...
 
final short getHandleEnd ()
 Returns the service end handle. More...
 
final short getHandleStart ()
 Returns the service start handle. More...
 
final boolean getPrimary ()
 Returns true if this service is a primary service, false if secondary. More...
 
String getUUID ()
 Get the UUID of this service. More...
 
final String toString ()
 
- 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 findGattChar (String char_uuid)
 Find a BTGattChar by its char_uuid. More...
 
List< BTGattChargetChars ()
 Returns a list of BTGattChar this service exposes. More...
 
BTDevice getDevice ()
 Returns the device to which this service belongs to. More...
 
boolean getPrimary ()
 Returns true if this service is a primary service, false if secondary. More...
 
String getUUID ()
 Get the UUID of this service. More...
 
String toString ()
 

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 ()
 

Additional Inherited Members

- Static Public Member Functions inherited from org.direct_bt.BTGattService
static boolean addCharListenerToAll (final BTDevice device, final List< BTGattService > services, final BTGattCharListener listener)
 Adds the given BTGattCharListener to the BTDevice and BTGattChar#enableNotificationOrIndication(boolean[]) for all BTGattChar instances. More...
 
static int removeAllCharListener (final BTDevice device, final List< BTGattService > services)
 Removes all BTGattCharListener from the BTDevice. More...
 
static boolean removeCharListenerFromAll (final BTDevice device, final List< BTGattService > services, final BTGattCharListener listener)
 Removes the given BTGattCharListener from the BTDevice. More...
 

Detailed Description

Definition at line 35 of file DBTGattService.java.

Member Function Documentation

◆ equals()

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

Reimplemented from jau.direct_bt.DBTObject.

Definition at line 59 of file DBTGattService.java.

◆ getUUID()

String jau.direct_bt.DBTGattService.getUUID ( )

Get the UUID of this service.

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

Implements org.direct_bt.BTGattService.

Definition at line 69 of file DBTGattService.java.

Here is the caller graph for this function:

◆ clone()

final BTGattService jau.direct_bt.DBTGattService.clone ( )

Definition at line 72 of file DBTGattService.java.

◆ findGattChar()

BTGattChar jau.direct_bt.DBTGattService.findGattChar ( final String  char_uuid)

Find a BTGattChar by its char_uuid.

@parameter char_uuid the UUID of the desired BTGattChar

Returns
The matching characteristic or null if not found

Implements org.direct_bt.BTGattService.

Definition at line 76 of file DBTGattService.java.

Here is the caller graph for this function:

◆ getDevice()

final BTDevice jau.direct_bt.DBTGattService.getDevice ( )

Returns the device to which this service belongs to.

Returns
The device.

Implements org.direct_bt.BTGattService.

Definition at line 92 of file DBTGattService.java.

◆ getPrimary()

final boolean jau.direct_bt.DBTGattService.getPrimary ( )

Returns true if this service is a primary service, false if secondary.

Returns
true if this service is a primary service, false if secondary.

Implements org.direct_bt.BTGattService.

Definition at line 95 of file DBTGattService.java.

◆ getChars()

final List< BTGattChar > jau.direct_bt.DBTGattService.getChars ( )

Returns a list of BTGattChar this service exposes.

Returns
A list of BTGattChar exposed by this service

Implements org.direct_bt.BTGattService.

Definition at line 98 of file DBTGattService.java.

◆ getHandleStart()

final short jau.direct_bt.DBTGattService.getHandleStart ( )

Returns the service start 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 106 of file DBTGattService.java.

◆ getHandleEnd()

final short jau.direct_bt.DBTGattService.getHandleEnd ( )

Returns the service end 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 114 of file DBTGattService.java.

◆ toString()

final String jau.direct_bt.DBTGattService.toString ( )

Implements org.direct_bt.BTGattService.

Definition at line 117 of file DBTGattService.java.

◆ deleteImpl()

native void jau.direct_bt.DBTGattService.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: