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.
Fork of OmniWheels by
ConnectionEventMonitor::EventHandler Class Reference
Implemented by classes that are reacting to connection changes. More...
#include <ConnectionEventMonitor.h>
Inherited by GenericSecurityManager.
Public Member Functions | |
virtual void | on_connected (connection_handle_t connection,::Gap::Role_t role, BLEProtocol::AddressType_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)=0 |
Inform the Security manager of a new connection. | |
virtual void | on_disconnected (connection_handle_t connection,::Gap::DisconnectionReason_t reason)=0 |
Inform the monitor about a disconnection. |
Detailed Description
Implemented by classes that are reacting to connection changes.
- See also:
- ConnectionEventMonitor
Definition at line 37 of file ConnectionEventMonitor.h.
Member Function Documentation
virtual void on_connected | ( | connection_handle_t | connection, |
::Gap::Role_t | role, | ||
BLEProtocol::AddressType_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 | ||
) | [pure virtual] |
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.
virtual void on_disconnected | ( | connection_handle_t | connection, |
::Gap::DisconnectionReason_t | reason | ||
) | [pure virtual] |
Inform the monitor about a disconnection.
- Parameters:
-
[in] connectionHandle Handle to identify the connection. [in] reason Reason for the disconnection.
Generated on Fri Jul 22 2022 04:54:16 by
