Merge pull request #13833 from AGlass0fMilk/privacy-enabled-cb-patch

Add new Gap::EventHandler callbacks to ChainableGapEventHandler class
pull/13904/head
Martin Kojtal 2020-11-12 08:43:35 +00:00 committed by GitHub
commit e725df7d07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -41,6 +41,10 @@ public:
execute_on_all(&ble::Gap::EventHandler::onScanRequestReceived, event);
}
void onAdvertisingStart(const ble::AdvertisingStartEvent &event) override {
execute_on_all(&ble::Gap::EventHandler::onAdvertisingStart, event);
}
void onAdvertisingEnd(const ble::AdvertisingEndEvent &event) override {
execute_on_all(&ble::Gap::EventHandler::onAdvertisingEnd, event);
}
@ -112,6 +116,10 @@ public:
connectionHandle, txSize, rxSize);
}
void onPrivacyEnabled() override {
execute_on_all(&ble::Gap::EventHandler::onPrivacyEnabled);
}
};
#endif /* MBED_CHAINABLEGAPEVENTHANDLER_H_ */