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

Representing a complete list of Gatt Service objects from the GATT server perspective, i.e. More...

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

Classes

class  Listener
 Listener to remote master device's operations on the local GATT-Server. More...
 

Public Member Functions

 DBGattServer ()
 Default empty ctor. More...
 
 DBGattServer (final int max_att_mtu_, final List< DBGattService > services_)
 
 DBGattServer (final List< DBGattService > services_)
 Ctor using default maximum ATT_MTU of 512+1. More...
 
synchronized boolean addListener (final Listener l)
 
void close ()
 
void finalize ()
 
DBGattChar findGattChar (final String service_uuid, final String char_uuid)
 
DBGattChar findGattCharByValueHandle (final short char_value_handle)
 
DBGattDesc findGattClientCharConfig (final String service_uuid, final String char_uuid)
 
DBGattService findGattService (final String service_uuid)
 
native int getMaxAttMTU ()
 Used maximum server Rx ATT_MTU, defaults to 512+1. More...
 
List< DBGattServicegetServices ()
 List of Services. More...
 
synchronized boolean removeListener (final Listener l)
 
boolean resetGattClientCharConfig (final String service_uuid, final String char_uuid)
 
native void setMaxAttMTU (final int v)
 Set maximum server Rx ATT_MTU, defaults to 512+1 limit. More...
 
String toFullString ()
 
native String toString ()
 

Detailed Description

Representing a complete list of Gatt Service objects from the GATT server perspective, i.e.

the Gatt Server database.

One instance shall be attached to BTAdapter when advertising via BTAdapter::startAdvertising(), changing its operating mode to Gatt Server mode.

The instance can also be retrieved via BTAdapter::getGATTServerData().

See Direct-BT Overview.

Since
2.4.0

Definition at line 44 of file DBGattServer.java.

Constructor & Destructor Documentation

◆ DBGattServer() [1/3]

org.direct_bt.DBGattServer.DBGattServer ( final int  max_att_mtu_,
final List< DBGattService services_ 
)
Parameters
max_att_mtu_
services_

Definition at line 237 of file DBGattServer.java.

◆ DBGattServer() [2/3]

org.direct_bt.DBGattServer.DBGattServer ( final List< DBGattService services_)

Ctor using default maximum ATT_MTU of 512+1.

Parameters
services_

Definition at line 270 of file DBGattServer.java.

◆ DBGattServer() [3/3]

org.direct_bt.DBGattServer.DBGattServer ( )

Default empty ctor.

Definition at line 276 of file DBGattServer.java.

Member Function Documentation

◆ getMaxAttMTU()

native int org.direct_bt.DBGattServer.getMaxAttMTU ( )

Used maximum server Rx ATT_MTU, defaults to 512+1.

Here is the caller graph for this function:

◆ setMaxAttMTU()

native void org.direct_bt.DBGattServer.setMaxAttMTU ( final int  v)

Set maximum server Rx ATT_MTU, defaults to 512+1 limit.

Method can only be issued before passing instance to BTAdapter::startAdvertising()

See also
BTAdapter::startAdvertising()
Here is the caller graph for this function:

◆ getServices()

List< DBGattService > org.direct_bt.DBGattServer.getServices ( )

List of Services.

Definition at line 230 of file DBGattServer.java.

◆ close()

void org.direct_bt.DBGattServer.close ( )

Definition at line 249 of file DBGattServer.java.

Here is the caller graph for this function:

◆ finalize()

void org.direct_bt.DBGattServer.finalize ( )

Definition at line 262 of file DBGattServer.java.

◆ findGattService()

DBGattService org.direct_bt.DBGattServer.findGattService ( final String  service_uuid)

Definition at line 280 of file DBGattServer.java.

Here is the caller graph for this function:

◆ findGattChar()

DBGattChar org.direct_bt.DBGattServer.findGattChar ( final String  service_uuid,
final String  char_uuid 
)

Definition at line 288 of file DBGattServer.java.

Here is the caller graph for this function:

◆ findGattClientCharConfig()

DBGattDesc org.direct_bt.DBGattServer.findGattClientCharConfig ( final String  service_uuid,
final String  char_uuid 
)

Definition at line 295 of file DBGattServer.java.

Here is the caller graph for this function:

◆ resetGattClientCharConfig()

boolean org.direct_bt.DBGattServer.resetGattClientCharConfig ( final String  service_uuid,
final String  char_uuid 
)

Definition at line 302 of file DBGattServer.java.

◆ findGattCharByValueHandle()

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

Definition at line 311 of file DBGattServer.java.

◆ addListener()

synchronized boolean org.direct_bt.DBGattServer.addListener ( final Listener  l)

Definition at line 321 of file DBGattServer.java.

Here is the caller graph for this function:

◆ removeListener()

synchronized boolean org.direct_bt.DBGattServer.removeListener ( final Listener  l)

Definition at line 326 of file DBGattServer.java.

Here is the caller graph for this function:

◆ toFullString()

String org.direct_bt.DBGattServer.toFullString ( )

Definition at line 331 of file DBGattServer.java.

◆ toString()

native String org.direct_bt.DBGattServer.toString ( )
Here is the caller graph for this function:

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