mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #13833 from AGlass0fMilk/privacy-enabled-cb-patch
Add new Gap::EventHandler callbacks to ChainableGapEventHandler classpull/13904/head
commit
e725df7d07
|
@ -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_ */
|
||||
|
|
Loading…
Reference in New Issue