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:47 2016 +0000
Parent:
1084:40c1e518d6de
Child:
1086:75d4e8ce277d
Commit message:
Synchronized with git rev 2f527dbb
Author: Rohit Grover
transparenly support existing applications which may have used Gap::ADDR_TYPE_*.

Changed in this revision

ble/Gap.h Show annotated file Show diff for this revision Revisions of this file
--- a/ble/Gap.h	Mon Jan 11 08:51:47 2016 +0000
+++ b/ble/Gap.h	Mon Jan 11 08:51:47 2016 +0000
@@ -38,9 +38,17 @@
 public:
     /**
      * Address-type for BLEProtocol addresses.
-     * @note: deprecated. Use BLEProtocol::AddressType_t instead.
+     *
+     * @note: deprecated. Use BLEProtocol::AddressType_t instead. This declaration will soon be changed to:
+     *     typedef BLEProtocol::AddressType_t AddressType_t;
+     * It has been left in this current state to transparenly support existing applications which may have used Gap::ADDR_TYPE_*.
      */
-    typedef BLEProtocol::AddressType_t AddressType_t;
+    enum AddressType_t {
+        ADDR_TYPE_PUBLIC = BLEProtocol::AddressType::PUBLIC,
+        ADDR_TYPE_RANDOM_STATIC,
+        ADDR_TYPE_RANDOM_PRIVATE_RESOLVABLE,
+        ADDR_TYPE_RANDOM_PRIVATE_NON_RESOLVABLE
+    };
 
     /**
      * Address-type for BLEProtocol addresses.