Lancaster University's fork of the mbed BLE API. Lives on github, https://github.com/lancaster-university/BLE_API
Dependents: microbit-dal microbit-dal microbit-ble-open microbit-dal ... more
Fork of BLE_API by
Revision 1085:ab823cb9783f, committed 2016-01-11
- 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.