Definition of the general handler of GattServer related events. More...
#include <GattServer.h>
Public Member Functions | |
virtual void | onAttMtuChange (ble::connection_handle_t connectionHandle, uint16_t attMtuSize) |
Function invoked when the connections changes the ATT_MTU which controls the maximum size of an attribute that can be read in a single L2CAP packet which might be fragmented across multiple packets. More... | |
virtual void | onDataSent (const GattDataSentCallbackParams ¶ms) |
Function invoked when the server has sent data to a client. More... | |
virtual void | onDataWritten (const GattWriteCallbackParams ¶ms) |
Function invoked when a client writes an attribute. More... | |
virtual void | onDataRead (const GattReadCallbackParams ¶ms) |
Function invoked when a client reads an attribute. More... | |
virtual void | onShutdown (const GattServer &server) |
Function invoked when the GattServer instance is about to be shut down. More... | |
virtual void | onUpdatesEnabled (const GattUpdatesEnabledCallbackParams ¶ms) |
Function invoked when the client has subscribed to characteristic updates. More... | |
virtual void | onUpdatesDisabled (const GattUpdatesDisabledCallbackParams ¶ms) |
Function invoked when the client has unsubscribed from characteristic updates. More... | |
virtual void | onConfirmationReceived (const GattConfirmationReceivedCallbackParams ¶ms) |
Event not used. More... | |
Protected Member Functions | |
~EventHandler ()=default | |
Prevent polymorphic deletion and avoid unnecessary virtual destructor as the GattServer class will never delete the instance it contains. More... | |
Definition of the general handler of GattServer related events.
Definition at line 107 of file GattServer.h.
|
protecteddefault |
Prevent polymorphic deletion and avoid unnecessary virtual destructor as the GattServer class will never delete the instance it contains.
|
virtual |
Function invoked when the connections changes the ATT_MTU which controls the maximum size of an attribute that can be read in a single L2CAP packet which might be fragmented across multiple packets.
connectionHandle | The handle of the connection that changed the size. |
attMtuSize |
Reimplemented in ChainableGattServerEventHandler.
Definition at line 118 of file GattServer.h.
|
virtual |
Event not used.
Reimplemented in ChainableGattServerEventHandler.
Definition at line 201 of file GattServer.h.
|
virtual |
Function invoked when a client reads an attribute.
Reimplemented in ChainableGattServerEventHandler.
Definition at line 161 of file GattServer.h.
|
virtual |
Function invoked when the server has sent data to a client.
For notifications this is triggered when data is sent, for indications it's only triggered when the confirmation has been received.
Reimplemented in ChainableGattServerEventHandler.
Definition at line 134 of file GattServer.h.
|
virtual |
Function invoked when a client writes an attribute.
Reimplemented in ChainableGattServerEventHandler.
Definition at line 144 of file GattServer.h.
|
virtual |
Function invoked when the GattServer instance is about to be shut down.
This can be the result of a call to reset() or BLE::reset().
Reimplemented in ChainableGattServerEventHandler.
Definition at line 169 of file GattServer.h.
|
virtual |
Function invoked when the client has unsubscribed from characteristic updates.
Reimplemented in ChainableGattServerEventHandler.
Definition at line 189 of file GattServer.h.
|
virtual |
Function invoked when the client has subscribed to characteristic updates.
Reimplemented in ChainableGattServerEventHandler.
Definition at line 179 of file GattServer.h.