Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
|
Representing a complete list of Gatt Service objects from the GATT server perspective, i.e. More...
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< DBGattService > | getServices () |
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 () |
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.
Definition at line 44 of file DBGattServer.java.
org.direct_bt.DBGattServer.DBGattServer | ( | final int | max_att_mtu_, |
final List< DBGattService > | services_ | ||
) |
max_att_mtu_ | |
services_ |
Definition at line 237 of file DBGattServer.java.
org.direct_bt.DBGattServer.DBGattServer | ( | final List< DBGattService > | services_ | ) |
Ctor using default maximum ATT_MTU of 512+1.
services_ |
Definition at line 270 of file DBGattServer.java.
org.direct_bt.DBGattServer.DBGattServer | ( | ) |
Default empty ctor.
Definition at line 276 of file DBGattServer.java.
native int org.direct_bt.DBGattServer.getMaxAttMTU | ( | ) |
Used maximum server Rx ATT_MTU, defaults to 512+1.
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()
List< DBGattService > org.direct_bt.DBGattServer.getServices | ( | ) |
List of Services.
Definition at line 230 of file DBGattServer.java.
void org.direct_bt.DBGattServer.close | ( | ) |
void org.direct_bt.DBGattServer.finalize | ( | ) |
Definition at line 262 of file DBGattServer.java.
DBGattService org.direct_bt.DBGattServer.findGattService | ( | final String | service_uuid | ) |
DBGattChar org.direct_bt.DBGattServer.findGattChar | ( | final String | service_uuid, |
final String | char_uuid | ||
) |
DBGattDesc org.direct_bt.DBGattServer.findGattClientCharConfig | ( | final String | service_uuid, |
final String | char_uuid | ||
) |
boolean org.direct_bt.DBGattServer.resetGattClientCharConfig | ( | final String | service_uuid, |
final String | char_uuid | ||
) |
Definition at line 302 of file DBGattServer.java.
DBGattChar org.direct_bt.DBGattServer.findGattCharByValueHandle | ( | final short | char_value_handle | ) |
Definition at line 311 of file DBGattServer.java.
synchronized boolean org.direct_bt.DBGattServer.addListener | ( | final Listener | l | ) |
synchronized boolean org.direct_bt.DBGattServer.removeListener | ( | final Listener | l | ) |
String org.direct_bt.DBGattServer.toFullString | ( | ) |
Definition at line 331 of file DBGattServer.java.
native String org.direct_bt.DBGattServer.toString | ( | ) |