Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
|
Representing a Gatt Characteristic Descriptor object from the GATTRole::Server perspective. More...
#include <DBGattServer.hpp>
Public Member Functions | |
DBGattDesc (const DBGattDesc &o) | |
Copy constructor preserving the capacity of the value. More... | |
DBGattDesc (DBGattDesc &&o) noexcept | |
Move constructor. More... | |
DBGattDesc (std::shared_ptr< const jau::uuid_t > type_, jau::POctets &&value_, bool variable_length_=false) noexcept | |
~DBGattDesc () noexcept override | |
void | bzero () noexcept |
Fill value with zero bytes. More... | |
std::string | get_java_class () const noexcept override |
uint16_t | getHandle () const noexcept |
Characteristic Descriptor Handle. More... | |
std::shared_ptr< const jau::uuid_t > | getType () const noexcept |
Type of descriptor. More... | |
std::shared_ptr< const jau::uuid_t > & | getType () noexcept |
Type of descriptor. More... | |
jau::POctets & | getValue () noexcept |
Get reference of this characteristic descriptor's value. More... | |
bool | hasVariableLength () const noexcept |
True if value is of variable length, otherwise fixed length. More... | |
bool | isClientCharConfig () const noexcept |
bool | isExtendedProperties () const noexcept |
Value is uint16_t bitfield. More... | |
bool | isUserDescription () const noexcept |
bool | setValue (const uint8_t *source, const jau::nsize_t source_len, const jau::nsize_t dest_pos) noexcept |
Set this characteristic descriptor'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::shared_ptr< DBGattDesc > | createClientCharConfig () |
Return a newly constructed Client Characteristic Configuration with a zero uint16_t value of fixed length. More... | |
static std::string | java_class () noexcept |
Representing a Gatt Characteristic Descriptor object from the GATTRole::Server perspective.
A list of shared DBGattDesc instances are passed at DBGattChar construction and are retrievable via DBGattChar::getDescriptors().
See Direct-BT Overview.
BT Core Spec v5.2: Vol 3, Part G GATT: 3.3.3 Characteristic Descriptor
Definition at line 95 of file DBGattServer.hpp.
|
inlineoverridenoexcept |
Definition at line 156 of file DBGattServer.hpp.
|
inlinenoexcept |
type_ | |
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. Forced to false if isExtendedProperties() or isClientCharConfig(). |
variable_length_ | defaults to false. |
Definition at line 168 of file DBGattServer.hpp.
|
inline |
Copy constructor preserving the capacity of the value.
o |
Definition at line 182 of file DBGattServer.hpp.
|
inlinenoexcept |
Move constructor.
o | POctet source to be taken over |
Definition at line 195 of file DBGattServer.hpp.
|
inlinenoexcept |
Characteristic Descriptor 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 114 of file DBGattServer.hpp.
|
inlinenoexcept |
Type of descriptor.
Definition at line 117 of file DBGattServer.hpp.
|
inlinenoexcept |
Type of descriptor.
Definition at line 120 of file DBGattServer.hpp.
|
inlinenoexcept |
True if value is of variable length, otherwise fixed length.
Definition at line 125 of file DBGattServer.hpp.
|
inlinenoexcept |
Get reference of this characteristic descriptor's value.
Its capacity defines the maximum writable variable length and its size defines the maximum writable fixed length.
Definition at line 133 of file DBGattServer.hpp.
|
noexcept |
Set this characteristic descriptor'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 41 of file DBGattServer.cpp.
|
inlinestaticnoexcept |
|
inlineoverridevirtualnoexcept |
Implements jau::jni::JavaUplink.
Definition at line 152 of file DBGattServer.hpp.
|
inlinestatic |
Return a newly constructed Client Characteristic Configuration with a zero uint16_t value of fixed length.
Definition at line 208 of file DBGattServer.hpp.
|
inlinenoexcept |
Fill value with zero bytes.
Definition at line 215 of file DBGattServer.hpp.
|
inlinenoexcept |
Value is uint16_t bitfield.
Definition at line 220 of file DBGattServer.hpp.
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 226 of file DBGattServer.hpp.
|
inlineoverridevirtualnoexcept |
Reimplemented from jau::jni::JavaUplink.
Definition at line 228 of file DBGattServer.hpp.