Skip to content

Commit 3554a63

Browse files
authored
BLE: Add default addressType to processAdvertisementReport
This patch should be reverted once the ST shield library and mbed-os-cliapp have been updated to support this change in the porting API.
1 parent 1f4e2b1 commit 3554a63

File tree

1 file changed

+5
-1
lines changed
  • features/FEATURE_BLE/ble

1 file changed

+5
-1
lines changed

features/FEATURE_BLE/ble/Gap.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2356,8 +2356,12 @@ class Gap {
23562356
GapAdvertisingParams::AdvertisingType_t type,
23572357
uint8_t advertisingDataLen,
23582358
const uint8_t *advertisingData,
2359-
BLEProtocol::AddressType_t addressType
2359+
BLEProtocol::AddressType_t addressType = BLEProtocol::RANDOM_STATIC
23602360
) {
2361+
// FIXME: remove default parameter for addressType when ST shield is merged;
2362+
// this has been added to mitigate the lack of dependency management in
2363+
// testing jobs ....
2364+
23612365
AdvertisementCallbackParams_t params;
23622366
memcpy(params.peerAddr, peerAddr, ADDR_LEN);
23632367
params.rssi = rssi;

0 commit comments

Comments
 (0)