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.
Gap::ConnectionCallbackParams_t Struct Reference
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. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.9.0","The type BLEProtocol::AddressType_t is not suitable when privacy is ""enabled. Use the constructor that accepts a PeerAddressType_t instead.") ConnectionCallbackParams_t(Handle_t handleIn | |
Construct an instance of ConnectionCallbackParams_t. | |
Data Fields | |
Handle_t | handle |
Connection handle. | |
Role_t | role |
Connection Role of the local device. | |
MBED_DEPRECATED_SINCE("mbed-os-5.9","The type BLEProtocol::AddressType_t is not suitable when privacy is ""enabled. Use peerAddressType instead.") BLEProtocol BLEProtocol::AddressBytes_t | peerAddr |
Type of the address the peer uses. | |
BLEProtocol::AddressType_t | ownAddrType |
Address type of the local device. | |
MBED_DEPRECATED_SINCE("mbed-os-5.9","A Bluetooth controller is not supposed to return the address it used""to connect. With privacy enabled the controller address may be unknown""to the host. There is no replacement for this deprecation.") BLEProtocol const ConnectionParams_t * | connectionParams |
Address of the local device. | |
BLEProtocol::AddressBytes_t | peerResolvableAddr |
Resolvable address used by the peer. | |
BLEProtocol::AddressBytes_t | localResolvableAddr |
resolvable address of the local device. | |
PeerAddressType_t | peerAddressType |
Type of the address the peer uses. |
Detailed Description
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.
Definition at line 744 of file Gap.h.
Constructor & Destructor Documentation
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.
- Parameters:
-
[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.
- Note:
- Constructor is not meant to be called by user code. The BLE API vendor code generates ConnectionCallbackParams_t.
Member Function Documentation
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.9.0" | , |
"The type BLEProtocol::AddressType_t is not suitable when privacy is ""enabled. Use the constructor that accepts a PeerAddressType_t instead." | |||
) |
Construct an instance of ConnectionCallbackParams_t.
- Parameters:
-
[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.
- Note:
- Constructor is not meant to be called by user code. The BLE API vendor code generates ConnectionCallbackParams_t.
Field Documentation
MBED_DEPRECATED_SINCE ( "mbed-os-5.9", "A Bluetooth controller is not supposed to return the address it used" "to connect. With privacy enabled the controller address may be unknown" "to the host. There is no replacement for this deprecation." ) BLEProtocol const ConnectionParams_t* connectionParams |
MBED_DEPRECATED_SINCE ( "mbed-os-5.9", "The type BLEProtocol::AddressType_t is not suitable when privacy is " "enabled. Use peerAddressType instead." ) BLEProtocol BLEProtocol::AddressBytes_t peerAddr |
Generated on Tue Aug 9 2022 00:37:33 by
