add "LE Device Address" 0x1B to advertising data types
Fork of BLE_API by
Revision 1091:58b2dac13261, committed 2016-01-11
- Comitter:
- vcoubard
- Date:
- Mon Jan 11 08:51:50 2016 +0000
- Parent:
- 1090:148d8b9b56a5
- Child:
- 1092:672a2f297a5c
- Commit message:
- Synchronized with git rev 31be7790
Author: Vincent Coubard
Merge pull request #146 from andresag01/develop
Add onShutdown to register callbacks
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:50 2016 +0000 +++ b/ble/Gap.h Mon Jan 11 08:51:50 2016 +0000 @@ -38,6 +38,7 @@ public: /** * Address-type for BLEProtocol addresses. + * * @note: deprecated. Use BLEProtocol::AddressType_t instead. */ typedef BLEProtocol::AddressType_t AddressType_t; @@ -48,6 +49,21 @@ */ typedef BLEProtocol::AddressType_t addr_type_t; + /** + * Address-type for BLEProtocol addresses. + * @note: deprecated. Use BLEProtocol::AddressType_t instead. + * + * DEPRECATION ALERT: The following constants have been left in their + * deprecated state to transparenly support existing applications which may + * have used Gap::ADDR_TYPE_*. + */ + enum { + ADDR_TYPE_PUBLIC = BLEProtocol::AddressType::PUBLIC, + ADDR_TYPE_RANDOM_STATIC = BLEProtocol::AddressType::RANDOM_STATIC, + ADDR_TYPE_RANDOM_PRIVATE_RESOLVABLE = BLEProtocol::AddressType::RANDOM_PRIVATE_RESOLVABLE, + ADDR_TYPE_RANDOM_PRIVATE_NON_RESOLVABLE = BLEProtocol::AddressType::RANDOM_PRIVATE_NON_RESOLVABLE + }; + static const unsigned ADDR_LEN = BLEProtocol::ADDR_LEN; /**< Length (in octets) of the BLE MAC address. */ typedef BLEProtocol::Address_t Address_t; /**< 48-bit address, LSB format. @Note: Deprecated. Use BLEProtocol::Address_t instead. */ typedef BLEProtocol::Address_t address_t; /**< 48-bit address, LSB format. @Note: Deprecated. Use BLEProtocol::Address_t instead. */