Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of BLE_API by
Diff: GapAdvertisingParams.cpp
- Revision:
- 9:124ae067ae27
- Parent:
- 7:5e1f0d7f7c7d
- Child:
- 14:6ea5d1012a64
diff -r 780bfa26d0ee -r 124ae067ae27 GapAdvertisingParams.cpp
--- a/GapAdvertisingParams.cpp Mon Dec 16 18:16:01 2013 +0000
+++ b/GapAdvertisingParams.cpp Mon Dec 16 19:43:33 2013 +0000
@@ -111,3 +111,23 @@
{
return _advType;
}
+
+/**************************************************************************/
+/*!
+ @brief returns the current Advertising Delay (in units of 0.625ms)
+*/
+/**************************************************************************/
+uint16_t GapAdvertisingParams::getInterval(void)
+{
+ return _interval;
+}
+
+/**************************************************************************/
+/*!
+ @brief returns the current Advertising Timeout (in seconds)
+*/
+/**************************************************************************/
+uint16_t GapAdvertisingParams::getTimeout(void)
+{
+ return _timeout;
+}
