Improve readability with getHandle inline

Fork of BLE_API by Bluetooth Low Energy

Files at this revision

API Documentation at this revision

Comitter:
rgrover1
Date:
Mon Dec 01 14:31:20 2014 +0000
Parent:
226:ec436a9ceb31
Child:
228:570b15f10ef1
Child:
230:db043dbf26f8
Commit message:
Synchronized with git rev 04ceb5ce
Author: Rohit Grover
Release 0.2.6
=============

Bugfixes and enhancements to URIBeaconConfigService. This entire release
refers to this service. Nothing else has changed.

Enhancements
~~~~~~~~~~~~

* Rename to URIBeacon2Service to URIBeaconConfigService.

* Add helper functions to update characteristics.

* Add txPowerMode characteristic.

* Add API to setup TxPowerLevels.

Bugfixes
~~~~~~~~

* Uri Data must be between 0 and 18 bytes.

* beaconPeriod should be converted to adv_duration_units only before calling setAdvertisingInterval().

* Fixed characteristic properties to match spec.

* Make UUID consts static so that the header file can be included from multiple compilation units.

Compatibility
~~~~~~~~~~~~~

This release is backward compatible with 0.2.4.

Changed in this revision

README.md Show annotated file Show diff for this revision Revisions of this file
common/blecommon.h Show annotated file Show diff for this revision Revisions of this file
public/BLEDevice.h Show annotated file Show diff for this revision Revisions of this file
public/CallChainOfFunctionPointersWithContext.h Show annotated file Show diff for this revision Revisions of this file
public/FunctionPointerWithContext.h Show annotated file Show diff for this revision Revisions of this file
public/GapEvents.h Show annotated file Show diff for this revision Revisions of this file
public/GattServerEvents.h Show annotated file Show diff for this revision Revisions of this file
services/UARTService.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	Mon Dec 01 14:31:20 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/common/blecommon.h	Mon Dec 01 14:31:20 2014 +0000
+++ b/common/blecommon.h	Mon Dec 01 14:31:20 2014 +0000
@@ -27,6 +27,7 @@
 #endif
 
 #include <stdint.h>
+#include <stddef.h>
 
 /** @defgroup BLE_UUID_VALUES Assigned Values for BLE UUIDs
  * @{ */
--- a/public/BLEDevice.h	Mon Dec 01 14:31:20 2014 +0000
+++ b/public/BLEDevice.h	Mon Dec 01 14:31:20 2014 +0000
@@ -17,6 +17,7 @@
 #ifndef __BLE_DEVICE__
 #define __BLE_DEVICE__
 
+#include "blecommon.h"
 #include "Gap.h"
 #include "GattServer.h"
 #include "BLEDeviceInstanceBase.h"
--- a/public/CallChainOfFunctionPointersWithContext.h	Mon Dec 01 14:31:20 2014 +0000
+++ b/public/CallChainOfFunctionPointersWithContext.h	Mon Dec 01 14:31:20 2014 +0000
@@ -19,7 +19,6 @@
 #include <string.h>
 #include "FunctionPointerWithContext.h"
 
-namespace mbed {
 
 /** Group one or more functions in an instance of a CallChainOfFunctionPointersWithContext, then call them in
  * sequence using CallChainOfFunctionPointersWithContext::call(). Used mostly by the interrupt chaining code,
@@ -27,7 +26,6 @@
  *
  * Example:
  * @code
- * #include "mbed.h"
  *
  * CallChainOfFunctionPointersWithContext<void *> chain;
  *
@@ -148,6 +146,4 @@
     CallChainOfFunctionPointersWithContext & operator = (const CallChainOfFunctionPointersWithContext &);
 };
 
-} // namespace mbed
-
-#endif
+#endif
\ No newline at end of file
--- a/public/FunctionPointerWithContext.h	Mon Dec 01 14:31:20 2014 +0000
+++ b/public/FunctionPointerWithContext.h	Mon Dec 01 14:31:20 2014 +0000
@@ -19,7 +19,6 @@
 
 #include <string.h>
 
-namespace mbed {
 
 /** A class for storing and calling a pointer to a static or member void function
  *  which takes a context.
@@ -126,6 +125,5 @@
                                                          *   external memory to manage the chain. Also refer to
                                                          *   'CallChain' as an alternative. */
 };
-} // namespace mbed
 
 #endif // ifndef MBED_FUNCTIONPOINTER_WITH_CONTEXT_H
\ No newline at end of file
--- a/public/GapEvents.h	Mon Dec 01 14:31:20 2014 +0000
+++ b/public/GapEvents.h	Mon Dec 01 14:31:20 2014 +0000
@@ -18,7 +18,6 @@
 #define __GAP_EVENTS_H__
 
 #include "blecommon.h"
-#include "mbed.h"
 
 /**************************************************************************/
 /*!
--- a/public/GattServerEvents.h	Mon Dec 01 14:31:20 2014 +0000
+++ b/public/GattServerEvents.h	Mon Dec 01 14:31:20 2014 +0000
@@ -18,7 +18,6 @@
 #define __GATT_SERVER_EVENTS_H__
 
 #include "blecommon.h"
-#include "mbed.h"
 
 /**************************************************************************/
 /*!
--- a/services/UARTService.h	Mon Dec 01 14:31:20 2014 +0000
+++ b/services/UARTService.h	Mon Dec 01 14:31:20 2014 +0000
@@ -17,6 +17,7 @@
 #ifndef __BLE_UART_SERVICE_H__
 #define __BLE_UART_SERVICE_H__
 
+#include "mbed.h"
 #include "Stream.h"
 
 #include "UUID.h"