Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
ConnectionEventMonitorEventHandler< Impl > Class Template Reference
Implemented by classes that are reacting to connection changes. More...
#include <ConnectionEventMonitor.h>
Public Member Functions | |
void | on_connected (connection_handle_t connection,::Gap::Role_t role, ble::peer_address_type_t peer_address_type, const BLEProtocol::AddressBytes_t peer_address, BLEProtocol::AddressType_t local_address_type, const BLEProtocol::AddressBytes_t local_address, const ::Gap::ConnectionParams_t *connection_params) |
Inform the Security manager of a new connection. | |
void | on_disconnected (connection_handle_t connection,::Gap::DisconnectionReason_t reason) |
Inform the monitor about a disconnection. |
Detailed Description
template<class Impl>
class ble::pal::ConnectionEventMonitorEventHandler< Impl >
Implemented by classes that are reacting to connection changes.
- See also:
- ConnectionEventMonitor
Definition at line 32 of file ConnectionEventMonitor.h.
Member Function Documentation
void on_connected | ( | connection_handle_t | connection, |
::Gap::Role_t | role, | ||
ble::peer_address_type_t | peer_address_type, | ||
const BLEProtocol::AddressBytes_t | peer_address, | ||
BLEProtocol::AddressType_t | local_address_type, | ||
const BLEProtocol::AddressBytes_t | local_address, | ||
const ::Gap::ConnectionParams_t * | connection_params | ||
) |
Inform the Security manager of a new connection.
This will create or retrieve an existing security manager entry for the connected device. Called by GAP.
- Parameters:
-
[in] connection Handle to identify the connection. [in] role indicate if the device is central or peripheral. [in] peer_address_type type of address. [in] peer_address Address of the connected device. [in] local_address_type type of address of the local device. [in] local_address Address of the local device that was used during connection. [in] connection_params connection parameters like interval, latency and timeout. [in] resolved_peer_address resolved address of the peer; may be NULL.
Definition at line 52 of file ConnectionEventMonitor.h.
void on_disconnected | ( | connection_handle_t | connection, |
::Gap::DisconnectionReason_t | reason | ||
) |
Inform the monitor about a disconnection.
- Parameters:
-
[in] connectionHandle Handle to identify the connection. [in] reason Reason for the disconnection.
Definition at line 78 of file ConnectionEventMonitor.h.
Generated on Tue Jul 12 2022 13:55:41 by
