Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
|
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< BTGattChar > | getChars () |
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 () |
Public Member Functions inherited from jau.direct_bt.DBTNativeDownlink | |
final void | delete () |
Deletes the nativeInstance in the following order. More... | |
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< BTGattChar > | getChars () |
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 () |
Protected Member Functions inherited from jau.direct_bt.DBTNativeDownlink | |
DBTNativeDownlink () | |
DBTNativeDownlink (final long nativeInstance) | |
abstract void | deleteImpl (long nativeInstance) |
Deletes the native instance. More... | |
void | finalize () |
final void | initDownlink (final long nativeInstance) |
final boolean | isNativeValid () |
Returns true if native instance is valid, otherwise false. More... | |
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... | |
Definition at line 35 of file DBTGattService.java.
boolean jau.direct_bt.DBTGattService.equals | ( | final Object | obj | ) |
Reimplemented from jau.direct_bt.DBTObject.
Definition at line 59 of file DBTGattService.java.
String jau.direct_bt.DBTGattService.getUUID | ( | ) |
Get the UUID of this service.
Implements org.direct_bt.BTGattService.
Definition at line 69 of file DBTGattService.java.
final BTGattService jau.direct_bt.DBTGattService.clone | ( | ) |
Definition at line 72 of file DBTGattService.java.
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
Implements org.direct_bt.BTGattService.
Definition at line 76 of file DBTGattService.java.
final BTDevice jau.direct_bt.DBTGattService.getDevice | ( | ) |
Returns the device to which this service belongs to.
Implements org.direct_bt.BTGattService.
Definition at line 92 of file DBTGattService.java.
final boolean jau.direct_bt.DBTGattService.getPrimary | ( | ) |
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.
final List< BTGattChar > jau.direct_bt.DBTGattService.getChars | ( | ) |
Returns a list of BTGattChar this service exposes.
Implements org.direct_bt.BTGattService.
Definition at line 98 of file DBTGattService.java.
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.
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.
final String jau.direct_bt.DBTGattService.toString | ( | ) |
Implements org.direct_bt.BTGattService.
Definition at line 117 of file DBTGattService.java.
|
protected |
Deletes the native instance.
Called via delete()
and at this point
JavaUplink
's javaObjectRef = nullptr
nativeInstance
reference has been zeroed, but passed as argument for this final native deletion task. nativeInstance | copy of nativeInstance reference, which has been already zeroed. |
Reimplemented from jau.direct_bt.DBTNativeDownlink.