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.
pull/6152/head
Vincent Coubard 2018-02-26 09:59:17 +00:00 committed by GitHub
parent 1f4e2b1820
commit 3554a63dc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -2356,8 +2356,12 @@ public:
GapAdvertisingParams::AdvertisingType_t type,
uint8_t advertisingDataLen,
const uint8_t *advertisingData,
BLEProtocol::AddressType_t addressType
BLEProtocol::AddressType_t addressType = BLEProtocol::RANDOM_STATIC
) {
// FIXME: remove default parameter for addressType when ST shield is merged;
// this has been added to mitigate the lack of dependency management in
// testing jobs ....
AdvertisementCallbackParams_t params;
memcpy(params.peerAddr, peerAddr, ADDR_LEN);
params.rssi = rssi;