add "LE Device Address" 0x1B to advertising data types

Fork of BLE_API by Bluetooth Low Energy

Files at this revision

API Documentation at this revision

Comitter:
vcoubard
Date:
Mon Jan 11 08:51:29 2016 +0000
Parent:
1048:efb29faf12fc
Child:
1050:37101a458dfb
Commit message:
Synchronized with git rev 4d8829ad
Author: Vincent Coubard
Workaround for mbed os Functionpointer implementation:
mbed os FunctionPointer implementation does not allow, yet, to use a const
member function This kind of workaround is needed to use
FunctionPointerWithContext class in minar

Changed in this revision

ble/FunctionPointerWithContext.h Show annotated file Show diff for this revision Revisions of this file
--- a/ble/FunctionPointerWithContext.h	Mon Jan 11 08:51:28 2016 +0000
+++ b/ble/FunctionPointerWithContext.h	Mon Jan 11 08:51:29 2016 +0000
@@ -94,6 +94,16 @@
         }
     }
 
+    /** Same as above, workaround for mbed os FunctionPointer implementation. */
+    void call(ContextType context) {
+        _caller(this, context);
+
+        /* Propagate the call to next in the chain. */
+        if (_next) {
+            _next->call(context);
+        }
+    }
+
     /**
      * Set up an external FunctionPointer as a next in the chain of related
      * callbacks. Invoking call() on the head FunctionPointer will invoke all