High level Bluetooth Low Energy API and radio abstraction layer
Fork of BLE_API by
Revision 956:21f1330d61de, committed 2015-11-26
- Comitter:
- rgrover1
- Date:
- Thu Nov 26 12:52:33 2015 +0000
- Parent:
- 955:9228741f4c19
- Child:
- 957:15f5e9046dde
- Commit message:
- Synchronized with git rev 5908e360
Author: Vincent Coubard
Alignement and comment
Changed in this revision
ble/Gap.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/ble/Gap.h Thu Nov 26 12:52:33 2015 +0000 +++ b/ble/Gap.h Thu Nov 26 12:52:33 2015 +0000 @@ -959,11 +959,14 @@ */ void onRadioNotification(void (*callback)(bool param)) { radioNotificationCallback.attach(callback); + // why does it start radio notification ? It is not even indicated in the + // doc that it start the listening process initRadioNotification(); } template <typename T> void onRadioNotification(T *tptr, void (T::*mptr)(bool)) { radioNotificationCallback.attach(tptr, mptr); + // why does it start radio notification ? initRadioNotification(); } @@ -1036,10 +1039,10 @@ bool scanningActive; protected: - TimeoutEventCallbackChain_t timeoutCallbackChain; - RadioNotificationEventCallback_t radioNotificationCallback; - AdvertisementReportCallback_t onAdvertisementReport; - ConnectionEventCallbackChain_t connectionCallChain; + TimeoutEventCallbackChain_t timeoutCallbackChain; + RadioNotificationEventCallback_t radioNotificationCallback; + AdvertisementReportCallback_t onAdvertisementReport; + ConnectionEventCallbackChain_t connectionCallChain; DisconnectionEventCallbackChain_t disconnectionCallChain; private: