Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: BLE_PowerBank_HeyFaradey
Fork of BLE_API by
Diff: public/Gap.h
- Revision:
- 337:e7c2eb38f5cc
- Parent:
- 325:501ad8b8bbe5
- Child:
- 341:8a104d9d80c1
--- a/public/Gap.h Wed Apr 15 09:05:10 2015 +0100
+++ b/public/Gap.h Wed Apr 15 09:05:11 2015 +0100
@@ -101,7 +101,7 @@
virtual ble_error_t setAppearance(uint16_t appearance) = 0;
virtual ble_error_t getAppearance(uint16_t *appearanceP) = 0;
-private:
+protected:
/* Event callback handlers */
void setOnTimeout(EventCallback_t callback) {onTimeout = callback;}
void setOnConnection(ConnectionEventCallback_t callback) {onConnection = callback;}
@@ -128,6 +128,7 @@
template<typename T>
void addToDisconnectionCallChain(T *tptr, void (T::*mptr)(void)) {disconnectionCallChain.add(tptr, mptr);}
+private:
GapState_t getState(void) const {
return state;
}
@@ -170,7 +171,7 @@
protected:
GapState_t state;
-private:
+protected:
EventCallback_t onTimeout;
ConnectionEventCallback_t onConnection;
DisconnectionEventCallback_t onDisconnection;
