Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
|
Public Member Functions | |
MyGATTServerListener () | |
~MyGATTServerListener () noexcept override | |
void | clientCharConfigChanged (const BTDeviceRef &device, const DBGattServiceRef &s, const DBGattCharRef &c, const DBGattDescRef &d, const bool notificationEnabled, const bool indicationEnabled) override |
Notifies a change of the Client Characteristic Configuration Descriptor (CCCD) value. More... | |
void | close () noexcept |
void | connected (const BTDeviceRef &device, const uint16_t initialMTU) override |
Notification that device got connected. More... | |
void | disconnected (const BTDeviceRef &device) override |
Notification that device got disconnected. More... | |
void | mtuChanged (const BTDeviceRef &device, const uint16_t mtu) override |
Notification that the MTU has changed. More... | |
bool | readCharValue (const BTDeviceRef &device, const DBGattServiceRef &s, const DBGattCharRef &c) override |
Signals attempt to read a value. More... | |
bool | readDescValue (const BTDeviceRef &device, const DBGattServiceRef &s, const DBGattCharRef &c, const DBGattDescRef &d) override |
Signals attempt to read a value. More... | |
bool | writeCharValue (const BTDeviceRef &device, const DBGattServiceRef &s, const DBGattCharRef &c, const jau::TROOctets &value, const uint16_t value_offset) override |
Signals attempt to write a single or bulk (prepare) value. More... | |
void | writeCharValueDone (const BTDeviceRef &device, const DBGattServiceRef &s, const DBGattCharRef &c) override |
Notifies completion of single or bulk writeCharValue() after having accepted and performed all write requests. More... | |
bool | writeDescValue (const BTDeviceRef &device, const DBGattServiceRef &s, const DBGattCharRef &c, const DBGattDescRef &d, const jau::TROOctets &value, const uint16_t value_offset) override |
Signals attempt to write a single or bulk (prepare) value. More... | |
void | writeDescValueDone (const BTDeviceRef &device, const DBGattServiceRef &s, const DBGattCharRef &c, const DBGattDescRef &d) override |
Notifies completion of single or bulk writeCharValue() after having accepted and performed all write requests. More... | |
Public Member Functions inherited from direct_bt::DBGattServer::Listener | |
virtual | ~Listener ()=default |
virtual void | clientCharConfigChanged (const BTDeviceRef &device, const DBGattServiceRef &s, const DBGattCharRef &c, const DBGattDescRef &d, const bool notificationEnabled, const bool indicationEnabled)=0 |
Notifies a change of the Client Characteristic Configuration Descriptor (CCCD) value. More... | |
virtual void | connected (const BTDeviceRef &device, const uint16_t initialMTU)=0 |
Notification that device got connected. More... | |
virtual void | disconnected (const BTDeviceRef &device)=0 |
Notification that device got disconnected. More... | |
virtual void | mtuChanged (const BTDeviceRef &device, const uint16_t mtu)=0 |
Notification that the MTU has changed. More... | |
bool | operator!= (const Listener &rhs) const |
virtual bool | operator== (const Listener &rhs) const |
Default comparison operator, merely testing for same memory reference. More... | |
virtual bool | readCharValue (const BTDeviceRef &device, const DBGattServiceRef &s, const DBGattCharRef &c)=0 |
Signals attempt to read a value. More... | |
virtual bool | readDescValue (const BTDeviceRef &device, const DBGattServiceRef &s, const DBGattCharRef &c, const DBGattDescRef &d)=0 |
Signals attempt to read a value. More... | |
virtual bool | writeCharValue (const BTDeviceRef &device, const DBGattServiceRef &s, const DBGattCharRef &c, const jau::TROOctets &value, const uint16_t value_offset)=0 |
Signals attempt to write a single or bulk (prepare) value. More... | |
virtual void | writeCharValueDone (const BTDeviceRef &device, const DBGattServiceRef &s, const DBGattCharRef &c)=0 |
Notifies completion of single or bulk writeCharValue() after having accepted and performed all write requests. More... | |
virtual bool | writeDescValue (const BTDeviceRef &device, const DBGattServiceRef &s, const DBGattCharRef &c, const DBGattDescRef &d, const jau::TROOctets &value, const uint16_t value_offset)=0 |
Signals attempt to write a single or bulk (prepare) value. More... | |
virtual void | writeDescValueDone (const BTDeviceRef &device, const DBGattServiceRef &s, const DBGattCharRef &c, const DBGattDescRef &d)=0 |
Notifies completion of single or bulk writeCharValue() after having accepted and performed all write requests. More... | |
Definition at line 335 of file dbt_peripheral00.cpp.
|
inline |
Definition at line 411 of file dbt_peripheral00.cpp.
|
inlineoverridenoexcept |
Definition at line 420 of file dbt_peripheral00.cpp.
|
inlinenoexcept |
Definition at line 424 of file dbt_peripheral00.cpp.
|
inlineoverridevirtual |
Notification that device got connected.
Convenient user entry, allowing to setup resources.
device | the connected device |
initialMTU | initial used minimum MTU until negotiated. |
Implements direct_bt::DBGattServer::Listener.
Definition at line 429 of file dbt_peripheral00.cpp.
|
inlineoverridevirtual |
Notification that device got disconnected.
Convenient user entry, allowing to clean up resources.
device | the disconnected device. |
Implements direct_bt::DBGattServer::Listener.
Definition at line 439 of file dbt_peripheral00.cpp.
|
inlineoverridevirtual |
Notification that the MTU has changed.
device | the device for which the MTU has changed |
mtu | the new negotiated MTU |
Implements direct_bt::DBGattServer::Listener.
Definition at line 448 of file dbt_peripheral00.cpp.
|
inlineoverridevirtual |
Signals attempt to read a value.
Callee shall accept the read request by returning true, otherwise false.
device | |
s | |
c |
Implements direct_bt::DBGattServer::Listener.
Definition at line 457 of file dbt_peripheral00.cpp.
|
inlineoverridevirtual |
Signals attempt to read a value.
Callee shall accept the read request by returning true, otherwise false.
device | |
s | |
c | |
d |
Implements direct_bt::DBGattServer::Listener.
Definition at line 464 of file dbt_peripheral00.cpp.
|
inlineoverridevirtual |
Signals attempt to write a single or bulk (prepare) value.
Callee shall accept the write request by returning true, otherwise false.
device | |
s | |
c | |
value | |
value_offset |
Implements direct_bt::DBGattServer::Listener.
Definition at line 471 of file dbt_peripheral00.cpp.
|
inlineoverridevirtual |
Notifies completion of single or bulk writeCharValue() after having accepted and performed all write requests.
device | |
s | |
c |
Implements direct_bt::DBGattServer::Listener.
Definition at line 479 of file dbt_peripheral00.cpp.
|
inlineoverridevirtual |
Signals attempt to write a single or bulk (prepare) value.
Callee shall accept the write request by returning true, otherwise false.
device | |
s | |
c | |
d | |
value | |
value_offset |
Implements direct_bt::DBGattServer::Listener.
Definition at line 495 of file dbt_peripheral00.cpp.
|
inlineoverridevirtual |
Notifies completion of single or bulk writeCharValue() after having accepted and performed all write requests.
device | |
s | |
c | |
d |
Implements direct_bt::DBGattServer::Listener.
Definition at line 503 of file dbt_peripheral00.cpp.
|
inlineoverridevirtual |
Notifies a change of the Client Characteristic Configuration Descriptor (CCCD) value.
device | |
s | |
c | |
d | |
notificationEnabled | |
indicationEnabled |
Implements direct_bt::DBGattServer::Listener.
Definition at line 510 of file dbt_peripheral00.cpp.