19#ifndef MBED_CHAINABLEGATTSERVEREVENTHANDLER_H_
20#define MBED_CHAINABLEGATTSERVEREVENTHANDLER_H_
22#include "ble/GattServer.h"
23#include "ble/common/ChainableEventHandler.h"
42 connectionHandle, attMtuSize);
Base class for chainable EventHandlers.
GattServer::EventHandler implementation that allows the application to register multiple separate Eve...
void onShutdown(const GattServer &server) override
Function invoked when the GattServer instance is about to be shut down.
void onDataRead(const GattReadCallbackParams ¶ms) override
Function invoked when a client reads an attribute.
void onUpdatesEnabled(const GattUpdatesEnabledCallbackParams ¶ms) override
Function invoked when the client has subscribed to characteristic updates.
void onDataSent(const GattDataSentCallbackParams ¶ms) override
Function invoked when the server has sent data to a client.
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 attri...
void onUpdatesDisabled(const GattUpdatesDisabledCallbackParams ¶ms) override
Function invoked when the client has unsubscribed from characteristic updates.
void onConfirmationReceived(const GattConfirmationReceivedCallbackParams ¶ms) override
Event not used.
void onDataWritten(const GattWriteCallbackParams ¶ms) override
Function invoked when a client writes an attribute.
Construct and operates a GATT server.
uintptr_t connection_handle_t
Opaque reference to a connection.
Gatt Data Sent Attribute related events.
GATT Read event definition.
Gatt Updates Changed Attribute related events.
GATT Write event definition.
Definition of the general handler of GattServer related events.
virtual void onShutdown(const GattServer &server)
Function invoked when the GattServer instance is about to be shut down.
virtual void onDataWritten(const GattWriteCallbackParams ¶ms)
Function invoked when a client writes an attribute.
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 attri...
virtual void onDataRead(const GattReadCallbackParams ¶ms)
Function invoked when a client reads an attribute.
virtual void onConfirmationReceived(const GattConfirmationReceivedCallbackParams ¶ms)
Event not used.
virtual void onDataSent(const GattDataSentCallbackParams ¶ms)
Function invoked when the server has sent data to a client.
virtual void onUpdatesDisabled(const GattUpdatesDisabledCallbackParams ¶ms)
Function invoked when the client has unsubscribed from characteristic updates.
virtual void onUpdatesEnabled(const GattUpdatesEnabledCallbackParams ¶ms)
Function invoked when the client has subscribed to characteristic updates.