From 75e61287760cf839333a953bd00b218c33664368 Mon Sep 17 00:00:00 2001 From: paul-szczepanek-arm <33840200+paul-szczepanek-arm@users.noreply.github.com> Date: Tue, 20 Nov 2018 15:33:13 +0000 Subject: [PATCH] solve link problems --- .../ble/gap/AdvertisingParameters.cpp | 25 +++++++++++++++++++ .../ble/gap/AdvertisingParameters.h | 6 ++--- 2 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 features/FEATURE_BLE/ble/gap/AdvertisingParameters.cpp diff --git a/features/FEATURE_BLE/ble/gap/AdvertisingParameters.cpp b/features/FEATURE_BLE/ble/gap/AdvertisingParameters.cpp new file mode 100644 index 0000000000..8d0db1db88 --- /dev/null +++ b/features/FEATURE_BLE/ble/gap/AdvertisingParameters.cpp @@ -0,0 +1,25 @@ +/* mbed Microcontroller Library + * Copyright (c) 2018 ARM Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. +*/ + +#include "ble/gap/AdvertisingParameters.h" + +namespace ble { + +const uint32_t AdvertisingParameters::DEFAULT_ADVERTISING_INTERVAL_MIN = 0x400; +const uint32_t AdvertisingParameters::DEFAULT_ADVERTISING_INTERVAL_MAX = 0x800; +const uint32_t AdvertisingParameters::GAP_ADV_PARAMS_INTERVAL_MIN_NONCON = 0x00A0; + +} // namespace ble diff --git a/features/FEATURE_BLE/ble/gap/AdvertisingParameters.h b/features/FEATURE_BLE/ble/gap/AdvertisingParameters.h index ca8ce80216..fa724f72ce 100644 --- a/features/FEATURE_BLE/ble/gap/AdvertisingParameters.h +++ b/features/FEATURE_BLE/ble/gap/AdvertisingParameters.h @@ -48,9 +48,9 @@ namespace ble { */ class AdvertisingParameters { - static const uint32_t DEFAULT_ADVERTISING_INTERVAL_MIN = 0x400; + static const uint32_t DEFAULT_ADVERTISING_INTERVAL_MIN; - static const uint32_t DEFAULT_ADVERTISING_INTERVAL_MAX = 0x800; + static const uint32_t DEFAULT_ADVERTISING_INTERVAL_MAX; /** * Minimum Advertising interval for scannable and nonconnectable @@ -58,7 +58,7 @@ class AdvertisingParameters { * * @note Equal to 100ms. */ - static const uint32_t GAP_ADV_PARAMS_INTERVAL_MIN_NONCON = 0x00A0; + static const uint32_t GAP_ADV_PARAMS_INTERVAL_MIN_NONCON; public: /**