mirror of https://github.com/ARMmbed/mbed-os.git
BLE: Fix constant declaration of ble::AdvertisingParameters.
parent
fea3ac87de
commit
9f39dba429
|
@ -48,9 +48,9 @@ namespace ble {
|
||||||
*/
|
*/
|
||||||
class AdvertisingParameters {
|
class AdvertisingParameters {
|
||||||
|
|
||||||
static const uint32_t DEFAULT_ADVERTISING_INTERVAL_MIN;
|
static const uint32_t DEFAULT_ADVERTISING_INTERVAL_MIN = 0x400;
|
||||||
|
|
||||||
static const uint32_t DEFAULT_ADVERTISING_INTERVAL_MAX;
|
static const uint32_t DEFAULT_ADVERTISING_INTERVAL_MAX = 0x800;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Minimum Advertising interval for scannable and nonconnectable
|
* Minimum Advertising interval for scannable and nonconnectable
|
||||||
|
@ -58,7 +58,7 @@ class AdvertisingParameters {
|
||||||
*
|
*
|
||||||
* @note Equal to 100ms.
|
* @note Equal to 100ms.
|
||||||
*/
|
*/
|
||||||
static const uint32_t GAP_ADV_PARAMS_INTERVAL_MIN_NONCON;
|
static const uint32_t GAP_ADV_PARAMS_INTERVAL_MIN_NONCON = 0x00A0;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -18,8 +18,8 @@
|
||||||
|
|
||||||
namespace ble {
|
namespace ble {
|
||||||
|
|
||||||
const uint32_t AdvertisingParameters::DEFAULT_ADVERTISING_INTERVAL_MIN = 0x400;
|
const uint32_t AdvertisingParameters::DEFAULT_ADVERTISING_INTERVAL_MIN;
|
||||||
const uint32_t AdvertisingParameters::DEFAULT_ADVERTISING_INTERVAL_MAX = 0x800;
|
const uint32_t AdvertisingParameters::DEFAULT_ADVERTISING_INTERVAL_MAX;
|
||||||
const uint32_t AdvertisingParameters::GAP_ADV_PARAMS_INTERVAL_MIN_NONCON = 0x00A0;
|
const uint32_t AdvertisingParameters::GAP_ADV_PARAMS_INTERVAL_MIN_NONCON;
|
||||||
|
|
||||||
} // namespace ble
|
} // namespace ble
|
||||||
|
|
Loading…
Reference in New Issue