add Gap::onAdvertisementReport and processAdvertisementReport()

This commit is contained in:
Rohit Grover 2015-04-24 14:56:50 +01:00
parent aabb9c1837
commit b8b185160b

View file

@ -261,6 +261,7 @@ protected:
onLinkSecured(),
onSecurityContextStored(),
onPasskeyDisplay(),
onAdvertisementReport(),
disconnectionCallChain() {
/* empty */
}
@ -311,6 +312,17 @@ public:
}
}
void processAdvertisementReport(const address_t peerAddr,
int8_t rssi,
bool isScanResponse,
AdvertisementType_t type,
uint8_t advertisingDataLen,
const uint8_t *advertisingData) {
if (onAdvertisementReport) {
onAdvertisementReport(peerAddr, rssi, isScanResponse, type, advertisingDataLen, advertisingData);
}
}
void processEvent(GapEvents::gapEvent_e type) {
switch (type) {
case GapEvents::GAP_EVENT_TIMEOUT: