BA / SerialCom

Fork of OmniWheels by Gustav Atmel

Embed: (wiki syntax)

« Back to documentation index

ConnectionEventMonitor::EventHandler Class Reference

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]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.
virtual void on_disconnected ( connection_handle_t  connection,
::Gap::DisconnectionReason_t  reason 
) [pure virtual]

Inform the monitor about a disconnection.

Parameters:
[in]connectionHandleHandle to identify the connection.
[in]reasonReason for the disconnection.