GattServer::EventHandler implementation that allows the application to register multiple separate EventHandlers to be called when GattServer events happen. More...
#include <ChainableGattServerEventHandler.h>
Public Member Functions | |
void | onAttMtuChange (ble::connection_handle_t connectionHandle, uint16_t attMtuSize) override |
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... | |
void | onDataSent (const GattDataSentCallbackParams ¶ms) override |
Function invoked when the server has sent data to a client as part of a notification/indication. More... | |
void | onDataWritten (const GattWriteCallbackParams ¶ms) override |
Function invoked when a client writes an attribute. More... | |
void | onDataRead (const GattReadCallbackParams ¶ms) override |
Function invoked when a client reads an attribute. More... | |
void | onShutdown (const GattServer &server) override |
Function invoked when the GattServer instance is about to be shut down. More... | |
void | onUpdatesEnabled (const GattUpdatesEnabledCallbackParams ¶ms) override |
Function invoked when the client has subscribed to characteristic updates. More... | |
void | onUpdatesDisabled (const GattUpdatesDisabledCallbackParams ¶ms) override |
Function invoked when the client has unsubscribed to characteristic updates. More... | |
void | onConfirmationReceived (const GattConfirmationReceivedCallbackParams ¶ms) override |
Function invoked when an ACK has been received for an indication sent to the client. More... | |
bool | addEventHandler (ble::GattServer::EventHandler *event_handler) |
Add an EventHandler to be notified of events sent to this ChainableEventHandler. More... | |
void | removeEventHandler (ble::GattServer::EventHandler *event_handler) |
Remove an EventHandler previously added with addEventHandler. More... | |
bool | isEventHandlerPresent (ble::GattServer::EventHandler *event_handler) |
Test if an event handler is present in the chain or not. More... | |
GattServer::EventHandler implementation that allows the application to register multiple separate EventHandlers to be called when GattServer events happen.
Definition at line 30 of file ChainableGattServerEventHandler.h.
|
inherited |
Add an EventHandler to be notified of events sent to this ChainableEventHandler.
[in] | event_handler | Handler to add to chain |
true | if adding EventHandler was successful, false otherwise |
Definition at line 54 of file ChainableEventHandler.h.
|
inherited |
Test if an event handler is present in the chain or not.
[in] | event_handler | Pointer to event handler to check |
Definition at line 102 of file ChainableEventHandler.h.
|
overridevirtual |
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 from GattServer::EventHandler.
Definition at line 40 of file ChainableGattServerEventHandler.h.
|
overridevirtual |
Function invoked when an ACK has been received for an indication sent to the client.
Reimplemented from GattServer::EventHandler.
Definition at line 69 of file ChainableGattServerEventHandler.h.
|
overridevirtual |
Function invoked when a client reads an attribute.
Reimplemented from GattServer::EventHandler.
Definition at line 53 of file ChainableGattServerEventHandler.h.
|
overridevirtual |
Function invoked when the server has sent data to a client as part of a notification/indication.
Reimplemented from GattServer::EventHandler.
Definition at line 45 of file ChainableGattServerEventHandler.h.
|
overridevirtual |
Function invoked when a client writes an attribute.
Reimplemented from GattServer::EventHandler.
Definition at line 49 of file ChainableGattServerEventHandler.h.
|
overridevirtual |
Function invoked when the GattServer instance is about to be shut down.
This can result in a call to reset() or BLE::reset().
Reimplemented from GattServer::EventHandler.
Definition at line 57 of file ChainableGattServerEventHandler.h.
|
overridevirtual |
Function invoked when the client has unsubscribed to characteristic updates.
Reimplemented from GattServer::EventHandler.
Definition at line 65 of file ChainableGattServerEventHandler.h.
|
overridevirtual |
Function invoked when the client has subscribed to characteristic updates.
Reimplemented from GattServer::EventHandler.
Definition at line 61 of file ChainableGattServerEventHandler.h.
|
inherited |
Remove an EventHandler previously added with addEventHandler.
[in] | event_handler | Pointer to event handler to remove |
Definition at line 74 of file ChainableEventHandler.h.