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: public/GapAdvertisingParams.h
- Revision:
- 116:ca826083980e
- Parent:
- 106:a20be740075d
- Child:
- 124:acf0d0c49867
--- a/public/GapAdvertisingParams.h Fri Aug 29 10:41:06 2014 +0200 +++ b/public/GapAdvertisingParams.h Tue Sep 02 15:09:46 2014 +0100 @@ -63,23 +63,15 @@ \li \c Bluetooth Core Specification 4.0 (Vol. 3), Part C, Section 9.3 */ /**************************************************************************/ - enum AdvertisingType - { - ADV_CONNECTABLE_UNDIRECTED, /**< Vol 3, Part C, Section 9.3.4 and - *Vol 6, Part B, Section 2.3.1.1 */ - ADV_CONNECTABLE_DIRECTED, /**< Vol 3, Part C, Section 9.3.3 and - *Vol 6, Part B, Section 2.3.1.2 */ - ADV_SCANNABLE_UNDIRECTED, /**< Include support for Scan Response - *payloads, see Vol 6, Part B, Section - *2.3.1.4 */ - ADV_NON_CONNECTABLE_UNDIRECTED /**< Vol 3, Part C, Section 9.3.2 and - *Vol 6, Part B, Section 2.3.1.3 */ + enum AdvertisingType { + ADV_CONNECTABLE_UNDIRECTED, /**< Vol 3, Part C, Section 9.3.4 and Vol 6, Part B, Section 2.3.1.1 */ + ADV_CONNECTABLE_DIRECTED, /**< Vol 3, Part C, Section 9.3.3 and Vol 6, Part B, Section 2.3.1.2 */ + ADV_SCANNABLE_UNDIRECTED, /**< Include support for Scan Response payloads, see Vol 6, Part B, Section 2.3.1.4 */ + ADV_NON_CONNECTABLE_UNDIRECTED /**< Vol 3, Part C, Section 9.3.2 and Vol 6, Part B, Section 2.3.1.3 */ }; - GapAdvertisingParams(AdvertisingType advType = - GapAdvertisingParams::ADV_CONNECTABLE_UNDIRECTED, - uint16_t interval = - GAP_ADV_PARAMS_INTERVAL_MIN_NONCON, + GapAdvertisingParams(AdvertisingType advType = GapAdvertisingParams::ADV_CONNECTABLE_UNDIRECTED, + uint16_t interval = GAP_ADV_PARAMS_INTERVAL_MIN_NONCON, uint16_t timeout = 0); virtual ~GapAdvertisingParams(void); @@ -146,5 +138,4 @@ return _timeout; } - #endif // ifndef __GAP_ADVERTISING_PARAMS_H__