Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
|
Representing a Gatt Service object from the GATTRole::Server perspective. More...
#include <DBGattServer.hpp>
Public Member Functions | |
DBGattService (const bool primary_, std::shared_ptr< const jau::uuid_t > type_, jau::darray< DBGattCharRef > &&characteristics_) | |
DBGattService (const DBGattService &o)=default | |
DBGattService (DBGattService &&o) noexcept=default | |
~DBGattService () noexcept override | |
DBGattCharRef | findGattChar (const jau::uuid_t &char_uuid) noexcept |
DBGattCharRef | findGattCharByValueHandle (const uint16_t char_value_handle) noexcept |
std::string | get_java_class () const noexcept override |
jau::darray< DBGattCharRef > & | getCharacteristics () noexcept |
List of Characteristic Declarations. More... | |
uint16_t | getEndHandle () const noexcept |
Service end handle, inclusive. More... | |
uint16_t | getHandle () const noexcept |
Service start handle. More... | |
std::shared_ptr< const jau::uuid_t > | getType () const noexcept |
Service type UUID. More... | |
std::shared_ptr< const jau::uuid_t > & | getType () noexcept |
Service type UUID. More... | |
bool | isPrimary () const noexcept |
Indicate whether this service is a primary service. More... | |
int | setHandles (const uint16_t start_handle) |
Sets all handles of this service instance and all its owned childs, i.e. More... | |
std::string | toString () const noexcept override |
Public Member Functions inherited from jau::jni::JavaUplink | |
JavaUplink () noexcept=default | |
JavaUplink (const JavaUplink &o) noexcept=default | |
JavaUplink (JavaUplink &&o) noexcept=default | |
virtual | ~JavaUplink () noexcept |
virtual void | checkValidInstance () const |
Throws an IllegalStateException if instance is not valid. More... | |
virtual std::string | get_java_class () const noexcept=0 |
const JavaAnonRef & | getJavaObject () noexcept |
std::string | javaObjectToString () const noexcept |
JavaUplink & | operator= (const JavaUplink &o) noexcept=default |
JavaUplink & | operator= (JavaUplink &&o) noexcept=default |
void | setJavaObject () noexcept |
Resets the shared JavaAnon reference, the replaced item might be deleted via JNI from dtor. More... | |
void | setJavaObject (const JavaAnonRef &objRef) noexcept |
Assigns a new shared JavaAnon reference, replaced item might be deleted via JNI from dtor. More... | |
virtual std::string | toString () const noexcept |
Static Public Member Functions | |
static std::string | java_class () noexcept |
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 565 of file DBGattServer.hpp.
|
inlineoverridenoexcept |
Definition at line 616 of file DBGattServer.hpp.
|
inline |
Definition at line 620 of file DBGattServer.hpp.
|
default |
|
defaultnoexcept |
|
inlinenoexcept |
Indicate whether this service is a primary service.
Definition at line 581 of file DBGattServer.hpp.
|
inlinenoexcept |
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 589 of file DBGattServer.hpp.
|
inlinenoexcept |
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).
Definition at line 597 of file DBGattServer.hpp.
|
inlinenoexcept |
Service type UUID.
Definition at line 600 of file DBGattServer.hpp.
|
inlinenoexcept |
Service type UUID.
Definition at line 603 of file DBGattServer.hpp.
|
inlinenoexcept |
List of Characteristic Declarations.
Definition at line 606 of file DBGattServer.hpp.
|
inlinestaticnoexcept |
|
inlineoverridevirtualnoexcept |
Implements jau::jni::JavaUplink.
Definition at line 612 of file DBGattServer.hpp.
|
inlinenoexcept |
Definition at line 631 of file DBGattServer.hpp.
|
inlinenoexcept |
Definition at line 639 of file DBGattServer.hpp.
|
inline |
Sets all handles of this service instance and all its owned childs, i.e.
DBGattChars elements and its DBGattDesc elements.
start_handle | a valid and unique start handle number > 0 |
( end_handle - handle ) + 1
Definition at line 655 of file DBGattServer.hpp.
|
inlineoverridevirtualnoexcept |
Reimplemented from jau::jni::JavaUplink.
Definition at line 675 of file DBGattServer.hpp.