Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
|
Representing a Gatt Characteristic object from the GATTRole::Server perspective. More...
#include <DBGattServer.hpp>
Public Member Functions | |
DBGattChar (const DBGattChar &o) | |
Copy constructor preserving the capacity of the value. More... | |
DBGattChar (DBGattChar &&o) noexcept | |
Move constructor. More... | |
DBGattChar (std::shared_ptr< const jau::uuid_t > value_type_, const BTGattChar::PropertyBitVal properties_, jau::darray< DBGattDescRef > &&descriptors_, jau::POctets &&value_, bool variable_length_=false) noexcept | |
~DBGattChar () noexcept override | |
void | bzero () noexcept |
Fill value with zero bytes. More... | |
std::string | get_java_class () const noexcept override |
const DBGattDescRef | getClientCharConfig () const noexcept |
DBGattDescRef | getClientCharConfig () noexcept |
int | getClientCharConfigIndex () const noexcept |
jau::darray< DBGattDescRef > & | getDescriptors () noexcept |
List of Characteristic Descriptions. More... | |
uint16_t | getEndHandle () const noexcept |
Characteristic end handle, inclusive. More... | |
uint16_t | getHandle () const noexcept |
Characteristic Handle of this instance. More... | |
BTGattChar::PropertyBitVal | getProperties () const noexcept |
const DBGattDescRef | getUserDescription () const noexcept |
DBGattDescRef | getUserDescription () noexcept |
int | getUserDescriptionIndex () const noexcept |
jau::POctets & | getValue () noexcept |
Get reference of this characteristics's value. More... | |
uint16_t | getValueHandle () const noexcept |
Characteristics Value Handle. More... | |
std::shared_ptr< const jau::uuid_t > | getValueType () const noexcept |
std::shared_ptr< const jau::uuid_t > & | getValueType () noexcept |
bool | hasProperties (const BTGattChar::PropertyBitVal v) const noexcept |
bool | hasVariableLength () const noexcept |
True if value is of variable length, otherwise fixed length. More... | |
bool | setValue (const uint8_t *source, const jau::nsize_t source_len, const jau::nsize_t dest_pos) noexcept |
Set this characteristics's value. 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 Characteristic object from the GATTRole::Server perspective.
A list of shared DBGattChar instances are passed at DBGattService construction and are retrievable via DBGattService::getCharacteristics().
See Direct-BT Overview.
BT Core Spec v5.2: Vol 3, Part G GATT: 3.3 Characteristic Definition
handle -> CDAV value
BT Core Spec v5.2: Vol 3, Part G GATT: 4.6.1 Discover All Characteristics of a Service
The handle represents a service's characteristics-declaration and the value the Characteristics Property, Characteristics Value Handle and Characteristics UUID.
Definition at line 264 of file DBGattServer.hpp.
|
inlineoverridenoexcept |
Definition at line 368 of file DBGattServer.hpp.
|
inlinenoexcept |
value_type_ | |
properties_ | |
descriptors_ | |
value_ | the data, which length defines the maximum writable fixed length if variable_length is false. If variable length is true, its capacity limits the maximum writable length. |
variable_length_ | defaults to false. |
Definition at line 382 of file DBGattServer.hpp.
|
inline |
Copy constructor preserving the capacity of the value.
o |
Definition at line 411 of file DBGattServer.hpp.
|
inlinenoexcept |
Move constructor.
o | POctet source to be taken over |
Definition at line 429 of file DBGattServer.hpp.
|
inlinenoexcept |
Characteristic Handle of this instance.
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 298 of file DBGattServer.hpp.
|
inlinenoexcept |
Characteristic 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 306 of file DBGattServer.hpp.
|
inlinenoexcept |
Characteristics Value 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 314 of file DBGattServer.hpp.
|
inlinenoexcept |
Definition at line 317 of file DBGattServer.hpp.
|
inlinenoexcept |
Definition at line 320 of file DBGattServer.hpp.
|
inlinenoexcept |
Definition at line 323 of file DBGattServer.hpp.
|
inlinenoexcept |
List of Characteristic Descriptions.
Definition at line 326 of file DBGattServer.hpp.
|
inlinenoexcept |
True if value is of variable length, otherwise fixed length.
Definition at line 331 of file DBGattServer.hpp.
|
inlinenoexcept |
Get reference of this characteristics's value.
Its capacity defines the maximum writable variable length and its size defines the maximum writable fixed length.
Definition at line 339 of file DBGattServer.hpp.
|
noexcept |
Set this characteristics's value.
Methods won't exceed the value's capacity if it is of hasVariableLength() or the value's size otherwise.
source | data to be written to this value |
source_len | length of the source data to be written |
dest_pos | position where the source data shall be written to the value |
Definition at line 58 of file DBGattServer.cpp.
|
inlinenoexcept |
Definition at line 355 of file DBGattServer.hpp.
|
inlinenoexcept |
Definition at line 358 of file DBGattServer.hpp.
|
inlinestaticnoexcept |
|
inlineoverridevirtualnoexcept |
Implements jau::jni::JavaUplink.
Definition at line 364 of file DBGattServer.hpp.
|
inlinenoexcept |
|
inlinenoexcept |
Fill value with zero bytes.
Definition at line 445 of file DBGattServer.hpp.
|
inlinenoexcept |
Definition at line 449 of file DBGattServer.hpp.
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 462 of file DBGattServer.hpp.
|
inlinenoexcept |
Definition at line 469 of file DBGattServer.hpp.
|
inlineoverridevirtualnoexcept |
Reimplemented from jau::jni::JavaUplink.
Definition at line 476 of file DBGattServer.hpp.