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 as part of a notification/indication. 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 to characteristic updates. More... | |
virtual void | onConfirmationReceived (const GattConfirmationReceivedCallbackParams ¶ms) |
Function invoked when an ACK has been received for an indication sent to the client. 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 116 of file GattServer.h.
|
virtual |
Function invoked when an ACK has been received for an indication sent to the client.
Reimplemented in ChainableGattServerEventHandler.
Definition at line 197 of file GattServer.h.
|
virtual |
Function invoked when a client reads an attribute.
Reimplemented in ChainableGattServerEventHandler.
Definition at line 158 of file GattServer.h.
|
virtual |
Function invoked when the server has sent data to a client as part of a notification/indication.
Reimplemented in ChainableGattServerEventHandler.
Definition at line 131 of file GattServer.h.
|
virtual |
Function invoked when a client writes an attribute.
Reimplemented in ChainableGattServerEventHandler.
Definition at line 141 of file GattServer.h.
|
virtual |
Function invoked when the GattServer instance is about to be shut down.
This can result in a call to reset() or BLE::reset().
Reimplemented in ChainableGattServerEventHandler.
Definition at line 166 of file GattServer.h.
|
virtual |
Function invoked when the client has unsubscribed to characteristic updates.
Reimplemented in ChainableGattServerEventHandler.
Definition at line 186 of file GattServer.h.
|
virtual |
Function invoked when the client has subscribed to characteristic updates.
Reimplemented in ChainableGattServerEventHandler.
Definition at line 176 of file GattServer.h.