Listener to remote master device's operations on the local GATT-Server.
More...
#include <DBGattServer.hpp>
|
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...
|
|
Listener to remote master device's operations on the local GATT-Server.
All methods shall return as soon as possible to not block GATT event processing.
- Examples
- dbt_peripheral00.cpp.
Definition at line 727 of file DBGattServer.hpp.
◆ ~Listener()
virtual direct_bt::DBGattServer::Listener::~Listener |
( |
| ) |
|
|
virtualdefault |
◆ connected()
virtual void direct_bt::DBGattServer::Listener::connected |
( |
const BTDeviceRef & |
device, |
|
|
const uint16_t |
initialMTU |
|
) |
| |
|
pure virtual |
Notification that device got connected.
Convenient user entry, allowing to setup resources.
- Parameters
-
device | the connected device |
initialMTU | initial used minimum MTU until negotiated. |
Implemented in MyGATTServerListener, and JNIDBGattServerListener.
◆ disconnected()
virtual void direct_bt::DBGattServer::Listener::disconnected |
( |
const BTDeviceRef & |
device | ) |
|
|
pure virtual |
◆ mtuChanged()
virtual void direct_bt::DBGattServer::Listener::mtuChanged |
( |
const BTDeviceRef & |
device, |
|
|
const uint16_t |
mtu |
|
) |
| |
|
pure virtual |
◆ readCharValue()
Signals attempt to read a value.
Callee shall accept the read request by returning true, otherwise false.
- Parameters
-
- Returns
- true if master read has been accepted by GATT-Server listener, otherwise false. Only if all listener return true, the read action will be allowed.
Implemented in MyGATTServerListener, and JNIDBGattServerListener.
◆ readDescValue()
Signals attempt to read a value.
Callee shall accept the read request by returning true, otherwise false.
- Parameters
-
- Returns
- true if master read has been accepted by GATT-Server listener, otherwise false. Only if all listener return true, the read action will be allowed.
Implemented in MyGATTServerListener, and JNIDBGattServerListener.
◆ writeCharValue()
Signals attempt to write a single or bulk (prepare) value.
Callee shall accept the write request by returning true, otherwise false.
- Parameters
-
device | |
s | |
c | |
value | |
value_offset | |
- Returns
- true if master write has been accepted by GATT-Server listener, otherwise false. Only if all listener return true, the write action will be allowed.
- See also
- writeCharValueDone()
Implemented in MyGATTServerListener, and JNIDBGattServerListener.
◆ writeCharValueDone()
◆ writeDescValue()
Signals attempt to write a single or bulk (prepare) value.
Callee shall accept the write request by returning true, otherwise false.
- Parameters
-
device | |
s | |
c | |
d | |
value | |
value_offset | |
- Returns
- true if master write has been accepted by GATT-Server listener, otherwise false. Only if all listener return true, the write action will be allowed.
- See also
- writeDescValueDone()
Implemented in MyGATTServerListener, and JNIDBGattServerListener.
◆ writeDescValueDone()
◆ clientCharConfigChanged()
◆ operator==()
virtual bool direct_bt::DBGattServer::Listener::operator== |
( |
const Listener & |
rhs | ) |
const |
|
inlinevirtual |
Default comparison operator, merely testing for same memory reference.
Specializations may override.
Definition at line 856 of file DBGattServer.hpp.
◆ operator!=()
bool direct_bt::DBGattServer::Listener::operator!= |
( |
const Listener & |
rhs | ) |
const |
|
inline |
The documentation for this class was generated from the following file: