Skip to content

Commit bdad5d6

Browse files
committed
BLE Generic: Handle peer address type backward compatibility.
1 parent cc286fe commit bdad5d6

File tree

2 files changed

+174
-113
lines changed

2 files changed

+174
-113
lines changed

features/FEATURE_BLE/ble/generic/GenericGap.h

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,16 @@ class GenericGap : public ::Gap,
113113
*/
114114
virtual ble_error_t stopScan();
115115

116+
/**
117+
* @see Gap::connect
118+
*/
119+
virtual ble_error_t connect(
120+
const BLEProtocol::AddressBytes_t peerAddr,
121+
PeerAddressType_t peerAddrType,
122+
const ConnectionParams_t *connectionParams,
123+
const GapScanningParams *scanParams
124+
);
125+
116126
/**
117127
* @see Gap::connect
118128
*/
@@ -295,11 +305,13 @@ class GenericGap : public ::Gap,
295305
void processConnectionEvent(
296306
Handle_t handle,
297307
Role_t role,
298-
BLEProtocol::AddressType_t peerAddrType,
308+
peer_address_type_t peerAddrType,
299309
const BLEProtocol::AddressBytes_t peerAddr,
300310
BLEProtocol::AddressType_t ownAddrType,
301311
const BLEProtocol::AddressBytes_t ownAddr,
302-
const ConnectionParams_t *connectionParams
312+
const ConnectionParams_t *connectionParams,
313+
const uint8_t *peerResolvableAddr,
314+
const uint8_t *localResolvableAddr
303315
);
304316

305317
/**

0 commit comments

Comments
 (0)