add Gap::onAdvertisementReport and processAdvertisementReport()
This commit is contained in:
parent
aabb9c1837
commit
b8b185160b
1 changed files with 12 additions and 0 deletions
12
public/Gap.h
12
public/Gap.h
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue