Connection events. More...
#include <Gap.h>
Public Member Functions | |
ConnectionCallbackParams_t (Handle_t handleIn, Role_t roleIn, PeerAddressType_t peerAddrTypeIn, const uint8_t *peerAddrIn, BLEProtocol::AddressType_t ownAddrTypeIn, const uint8_t *ownAddrIn, const ConnectionParams_t *connectionParamsIn, const uint8_t *peerResolvableAddrIn=NULL, const uint8_t *localResolvableAddrIn=NULL) | |
Construct an instance of ConnectionCallbackParams_t. More... | |
ConnectionCallbackParams_t (Handle_t handleIn, Role_t roleIn, BLEProtocol::AddressType_t peerAddrTypeIn, const uint8_t *peerAddrIn, BLEProtocol::AddressType_t ownAddrTypeIn, const uint8_t *ownAddrIn, const ConnectionParams_t *connectionParamsIn, const uint8_t *peerResolvableAddrIn=NULL, const uint8_t *localResolvableAddrIn=NULL) | |
Construct an instance of ConnectionCallbackParams_t. More... | |
Data Fields | |
Handle_t | handle |
Connection handle. More... | |
Role_t | role |
Connection Role of the local device. More... | |
BLEProtocol::AddressType_t | peerAddrType |
Type of the address the peer uses. More... | |
BLEProtocol::AddressBytes_t | peerAddr |
Address of the peer. More... | |
BLEProtocol::AddressType_t | ownAddrType |
Address type of the local device. More... | |
BLEProtocol::AddressBytes_t | ownAddr |
Address of the local device. More... | |
const ConnectionParams_t * | connectionParams |
Connection parameters. More... | |
BLEProtocol::AddressBytes_t | peerResolvableAddr |
Resolvable address used by the peer. More... | |
BLEProtocol::AddressBytes_t | localResolvableAddr |
resolvable address of the local device. More... | |
PeerAddressType_t | peerAddressType |
Type of the address the peer uses. More... | |
Connection events.
It contains all the information related to a newly established connection.
Instances of this structure are passed to handlers that Gap::onConnection() registers when a connection is established.
ConnectionCallbackParams_t | ( | Handle_t | handleIn, |
Role_t | roleIn, | ||
PeerAddressType_t | peerAddrTypeIn, | ||
const uint8_t * | peerAddrIn, | ||
BLEProtocol::AddressType_t | ownAddrTypeIn, | ||
const uint8_t * | ownAddrIn, | ||
const ConnectionParams_t * | connectionParamsIn, | ||
const uint8_t * | peerResolvableAddrIn = NULL , |
||
const uint8_t * | localResolvableAddrIn = NULL |
||
) |
Construct an instance of ConnectionCallbackParams_t.
[in] | handleIn | Value to assign to handle. |
[in] | roleIn | Value to assign to role. |
[in] | peerAddrTypeIn | Value to assign to peerAddrType. |
[in] | peerAddrIn | Value to assign to peerAddr. |
[in] | ownAddrTypeIn | Value to assign to ownAddrType. |
[in] | ownAddrIn | Value to assign to ownAddr. This may be NULL. |
[in] | connectionParamsIn | Value to assign to connectionParams. |
[in] | peerResolvableAddrIn | Value to assign to peerResolvableAddr. |
[in] | localResolvableAddrIn | Value to assign to localResolvableAddr. |
ConnectionCallbackParams_t | ( | Handle_t | handleIn, |
Role_t | roleIn, | ||
BLEProtocol::AddressType_t | peerAddrTypeIn, | ||
const uint8_t * | peerAddrIn, | ||
BLEProtocol::AddressType_t | ownAddrTypeIn, | ||
const uint8_t * | ownAddrIn, | ||
const ConnectionParams_t * | connectionParamsIn, | ||
const uint8_t * | peerResolvableAddrIn = NULL , |
||
const uint8_t * | localResolvableAddrIn = NULL |
||
) |
Construct an instance of ConnectionCallbackParams_t.
[in] | handleIn | Value to assign to handle. |
[in] | roleIn | Value to assign to role. |
[in] | peerAddrTypeIn | Value to assign to peerAddrType. |
[in] | peerAddrIn | Value to assign to peerAddr. |
[in] | ownAddrTypeIn | Value to assign to ownAddrType. |
[in] | ownAddrIn | Value to assign to ownAddr. |
[in] | connectionParamsIn | Value to assign to connectionParams. |
[in] | peerResolvableAddrIn | Value to assign to peerResolvableAddr. |
[in] | localResolvableAddrIn | Value to assign to localResolvableAddr. |
const ConnectionParams_t* connectionParams |
BLEProtocol::AddressBytes_t localResolvableAddr |
BLEProtocol::AddressBytes_t ownAddr |
Address of the local device.
BLEProtocol::AddressType_t ownAddrType |
BLEProtocol::AddressBytes_t peerAddr |
PeerAddressType_t peerAddressType |
BLEProtocol::AddressType_t peerAddrType |
Type of the address the peer uses.
BLEProtocol::AddressBytes_t peerResolvableAddr |