Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
|
Representing a Gatt Service object from the ::GATTRole::Server perspective. More...
Classes | |
class | UUID16 |
Selected standard GATT service service numbers in UUID16 format as defined. More... | |
Public Member Functions | |
DBGattService (final boolean primary_, final String type_, final List< DBGattChar > characteristics_) | |
void | close () |
boolean | equals (final Object other) |
void | finalize () |
DBGattChar | findGattChar (final String char_uuid) |
DBGattChar | findGattCharByValueHandle (final short char_value_handle) |
final List< DBGattChar > | getCharacteristics () |
List of Characteristic Declarations. More... | |
native short | getEndHandle () |
Service end handle, inclusive. More... | |
native short | getHandle () |
Service start handle. More... | |
String | getType () |
Service type UUID (lower-case) More... | |
native String | toString () |
Public Attributes | |
final boolean | primary |
Indicate whether this service is a primary service. More... | |
Representing a Gatt Service object from the ::GATTRole::Server perspective.
A list of shared DBGattService instances are passed at DBGattServer construction and are retrievable via DBGattServer::getServices().
See Direct-BT Overview.
BT Core Spec v5.2: Vol 3, Part G GATT: 3.1 Service Definition
Includes a complete [Primary] Service Declaration including its list of Characteristic Declarations, which also may include its client config if available.
Definition at line 46 of file DBGattService.java.
org.direct_bt.DBGattService.DBGattService | ( | final boolean | primary_, |
final String | type_, | ||
final List< DBGattChar > | characteristics_ | ||
) |
native short org.direct_bt.DBGattService.getHandle | ( | ) |
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).
native short org.direct_bt.DBGattService.getEndHandle | ( | ) |
Service end handle, inclusive.
Attribute handles are unique for each device (server) (BT Core Spec v5.2: Vol 3, Part F Protocol..: 3.2.2 Attribute Handle).
String org.direct_bt.DBGattService.getType | ( | ) |
Service type UUID (lower-case)
Definition at line 94 of file DBGattService.java.
final List< DBGattChar > org.direct_bt.DBGattService.getCharacteristics | ( | ) |
List of Characteristic Declarations.
Definition at line 99 of file DBGattService.java.
void org.direct_bt.DBGattService.close | ( | ) |
void org.direct_bt.DBGattService.finalize | ( | ) |
Definition at line 132 of file DBGattService.java.
DBGattChar org.direct_bt.DBGattService.findGattChar | ( | final String | char_uuid | ) |
DBGattChar org.direct_bt.DBGattService.findGattCharByValueHandle | ( | final short | char_value_handle | ) |
Definition at line 144 of file DBGattService.java.
boolean org.direct_bt.DBGattService.equals | ( | final Object | other | ) |
Definition at line 154 of file DBGattService.java.
native String org.direct_bt.DBGattService.toString | ( | ) |
final boolean org.direct_bt.DBGattService.primary |
Indicate whether this service is a primary service.
Definition at line 73 of file DBGattService.java.