Merge pull request #145 from rgrover/develop
transparenly support existing applications which may have used Gap::ADDR_TYPE_*
This commit is contained in:
commit
65ed5c13a8
1 changed files with 16 additions and 0 deletions
16
ble/Gap.h
16
ble/Gap.h
|
@ -38,6 +38,7 @@ class Gap {
|
|||
public:
|
||||
/**
|
||||
* Address-type for BLEProtocol addresses.
|
||||
*
|
||||
* @note: deprecated. Use BLEProtocol::AddressType_t instead.
|
||||
*/
|
||||
typedef BLEProtocol::AddressType_t AddressType_t;
|
||||
|
@ -48,6 +49,21 @@ public:
|
|||
*/
|
||||
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. */
|
||||
|
|
Loading…
Add table
Reference in a new issue