Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

ConnectionEventMonitorEventHandler< Impl > Class Template Reference

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]connectionHandle to identify the connection.
[in]roleindicate if the device is central or peripheral.
[in]peer_address_typetype of address.
[in]peer_addressAddress of the connected device.
[in]local_address_typetype of address of the local device.
[in]local_addressAddress of the local device that was used during connection.
[in]connection_paramsconnection parameters like interval, latency and timeout.
[in]resolved_peer_addressresolved 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]connectionHandleHandle to identify the connection.
[in]reasonReason for the disconnection.

Definition at line 78 of file ConnectionEventMonitor.h.