High level Bluetooth Low Energy API and radio abstraction layer
Fork of BLE_API by
Revision 125:aae3f50670c9, committed 2014-11-21
- Comitter:
- rgrover1
- Date:
- Fri Nov 21 09:23:21 2014 +0000
- Parent:
- 124:acf0d0c49867
- Child:
- 126:fdebe4d5d62f
- Commit message:
- Synchronized with git rev 5ff054e2
Author: Austin Blackstone
adding initial readme with references to developer.mbed.org
Changed in this revision
README.md | Show annotated file Show diff for this revision Revisions of this file |
public/GapAdvertisingParams.h | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/README.md Fri Nov 21 09:23:21 2014 +0000 @@ -0,0 +1,18 @@ +# mbed Bluetooth Low Energy Stack +This is the github repo for the BLE_API used by developer.mbed.org . The BLE stack is under development and constantly evolving. For up to date documentation please see [the mbed BLE Documentation page](http://developer.mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/docs/tip/). + +# Supported Services +Supported GATT services and constantly being added and can be found in the /services folder. +Currently supported services include: +* Battery +* Device Firmware Update (DFU) +* Device Information +* Health Thermometer +* Heart Rate +* UART + +# Getting Started +The mbed BLE API is meant to be used in projects on developer.mbed.org. Please see examples and sample project files there. +A good starting point are these pages: +* [mbed BLE API](developer.mbed.org/teams/Bluetooth-Low-Energy/) +* [mbed BLE Getting Started Guide](http://developer.mbed.org/forum/team-63-Bluetooth-Low-Energy-community/topic/5262/) \ No newline at end of file
--- a/public/GapAdvertisingParams.h Fri Nov 21 09:23:21 2014 +0000 +++ b/public/GapAdvertisingParams.h Fri Nov 21 09:23:21 2014 +0000 @@ -19,6 +19,11 @@ #include "blecommon.h" +#define GAP_ADV_PARAMS_INTERVAL_MIN (0x0020) +#define GAP_ADV_PARAMS_INTERVAL_MIN_NONCON (0x00A0) +#define GAP_ADV_PARAMS_INTERVAL_MAX (0x1000) +#define GAP_ADV_PARAMS_TIMEOUT_MAX (0x3FFF) + /**************************************************************************/ /*! \brief @@ -45,11 +50,6 @@ class GapAdvertisingParams { public: - static const unsigned GAP_ADV_PARAMS_INTERVAL_MIN = 0x0020; - static const unsigned GAP_ADV_PARAMS_INTERVAL_MIN_NONCON = 0x00A0; - static const unsigned GAP_ADV_PARAMS_INTERVAL_MAX = 0x4000; - static const unsigned GAP_ADV_PARAMS_TIMEOUT_MAX = 0x3FFF; - /**************************************************************************/ /*! \brief @@ -70,7 +70,6 @@ ADV_NON_CONNECTABLE_UNDIRECTED /**< Vol 3, Part C, Section 9.3.2 and Vol 6, Part B, Section 2.3.1.3 */ }; -public: GapAdvertisingParams(AdvertisingType advType = GapAdvertisingParams::ADV_CONNECTABLE_UNDIRECTED, uint16_t interval = GAP_ADV_PARAMS_INTERVAL_MIN_NONCON, uint16_t timeout = 0);