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.
Fork of BLE_API by
Revision 1086:ab823cb9783f, committed 2016-01-11
- Comitter:
- vcoubard
- Date:
- Mon Jan 11 08:51:47 2016 +0000
- Parent:
- 1085:40c1e518d6de
- Child:
- 1087: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.
