High level Bluetooth Low Energy API and radio abstraction layer
Fork of BLE_API by
Revision 923:ca1964e56ddf, committed 2015-11-26
- Comitter:
- rgrover1
- Date:
- Thu Nov 26 12:52:04 2015 +0000
- Parent:
- 922:e04837405cd5
- Child:
- 924:f4a901a3e6cd
- 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:04 2015 +0000 +++ b/ble/Gap.h Thu Nov 26 12:52:04 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: