From 3de2ea8acd3de0599942b8960f6fb2280fc21e12 Mon Sep 17 00:00:00 2001 From: Jay Cady Date: Thu, 24 Mar 2016 17:14:18 -0700 Subject: [PATCH] Added peer address type to advertisement report. --- ble/Gap.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ble/Gap.h b/ble/Gap.h index 6da3777..f650a9a 100644 --- a/ble/Gap.h +++ b/ble/Gap.h @@ -198,6 +198,7 @@ class Gap { */ struct AdvertisementCallbackParams_t { BLEProtocol::AddressBytes_t peerAddr; /**< The peer's BLE address. */ + BLEProtocol::AddressType_t peerAddrType; /**< The peer's BLE address type. */ int8_t rssi; /**< The advertisement packet RSSI value. */ bool isScanResponse; /**< Whether this packet is the response to a scan request. */ GapAdvertisingParams::AdvertisingType_t type; /**< The type of advertisement. */ @@ -1800,6 +1801,8 @@ class Gap { * * @param[in] peerAddr * The peer's BLE address. + * @param[in] peerAddrType + * The peer's BLE address type. * @param[in] rssi * The advertisement packet RSSI value. * @param[in] isScanReponse @@ -1812,6 +1815,7 @@ class Gap { * Pointer to the advertisement packet's data. */ void processAdvertisementReport(const BLEProtocol::AddressBytes_t peerAddr, + BLEProtocol::AddressType_t peerAddrType, int8_t rssi, bool isScanResponse, GapAdvertisingParams::AdvertisingType_t type, @@ -1819,6 +1823,7 @@ class Gap { const uint8_t *advertisingData) { AdvertisementCallbackParams_t params; memcpy(params.peerAddr, peerAddr, ADDR_LEN); + params.peerAddrType = peerAddrType; params.rssi = rssi; params.isScanResponse = isScanResponse; params.type = type;