Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
Classes | Public Member Functions | Public Attributes | List of all members
org.direct_bt.DBGattService Class Reference

Representing a Gatt Service object from the ::GATTRole::Server perspective. More...

Inheritance diagram for org.direct_bt.DBGattService:
Collaboration diagram for org.direct_bt.DBGattService:

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

Detailed Description

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.

Since
2.4.0

Definition at line 46 of file DBGattService.java.

Constructor & Destructor Documentation

◆ DBGattService()

org.direct_bt.DBGattService.DBGattService ( final boolean  primary_,
final String  type_,
final List< DBGattChar characteristics_ 
)

Definition at line 101 of file DBGattService.java.

Here is the caller graph for this function:

Member Function Documentation

◆ getHandle()

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

Here is the caller graph for this function:

◆ getEndHandle()

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

Here is the caller graph for this function:

◆ getType()

String org.direct_bt.DBGattService.getType ( )

Service type UUID (lower-case)

Definition at line 94 of file DBGattService.java.

◆ getCharacteristics()

final List< DBGattChar > org.direct_bt.DBGattService.getCharacteristics ( )

List of Characteristic Declarations.

Definition at line 99 of file DBGattService.java.

◆ close()

void org.direct_bt.DBGattService.close ( )

Definition at line 119 of file DBGattService.java.

Here is the caller graph for this function:

◆ finalize()

void org.direct_bt.DBGattService.finalize ( )

Definition at line 132 of file DBGattService.java.

◆ findGattChar()

DBGattChar org.direct_bt.DBGattService.findGattChar ( final String  char_uuid)

Definition at line 136 of file DBGattService.java.

Here is the caller graph for this function:

◆ findGattCharByValueHandle()

DBGattChar org.direct_bt.DBGattService.findGattCharByValueHandle ( final short  char_value_handle)

Definition at line 144 of file DBGattService.java.

◆ equals()

boolean org.direct_bt.DBGattService.equals ( final Object  other)

Definition at line 154 of file DBGattService.java.

◆ toString()

native String org.direct_bt.DBGattService.toString ( )

Member Data Documentation

◆ primary

final boolean org.direct_bt.DBGattService.primary

Indicate whether this service is a primary service.

Definition at line 73 of file DBGattService.java.


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