Mbed OS Reference
Loading...
Searching...
No Matches
GattClient::EventHandler Struct Reference

Definition of the general handler of GattClient related events. More...

#include <GattClient.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...
 

Protected Member Functions

 ~EventHandler ()=default
 Prevent polymorphic deletion and avoid unnecessary virtual destructor as the GattClient class will never delete the instance it contains. More...
 

Detailed Description

Definition of the general handler of GattClient related events.

Definition at line 102 of file GattClient.h.

Constructor & Destructor Documentation

◆ ~EventHandler()

~EventHandler ( )
protecteddefault

Prevent polymorphic deletion and avoid unnecessary virtual destructor as the GattClient class will never delete the instance it contains.

Member Function Documentation

◆ onAttMtuChange()

virtual void onAttMtuChange ( ble::connection_handle_t  connectionHandle,
uint16_t  attMtuSize 
)
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.

Parameters
connectionHandleThe handle of the connection that changed the size.
attMtuSize
See also
negotiateAttMtu()

Definition at line 113 of file GattClient.h.