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