High level Bluetooth Low Energy API and radio abstraction layer

Dependencies:   nRF51822

Dependents:   LinkNode_LIS3DH

Fork of BLE_API by Bluetooth Low Energy

Files at this revision

API Documentation at this revision

Comitter:
rgrover1
Date:
Fri Mar 27 13:03:37 2015 +0000
Parent:
326:f79c1562312f
Child:
328:1fd12f67ed7a
Commit message:
Synchronized with git rev 1d21e85a
Author: Rohit Grover
Release 0.3.1
=============

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

* added helper UARTService::writeString() to simplify writing of strings.

Bugfixes
~~~~~~~~

none.

Changed in this revision

services/UARTService.h Show annotated file Show diff for this revision Revisions of this file
--- a/services/UARTService.h	Fri Mar 27 13:03:37 2015 +0000
+++ b/services/UARTService.h	Fri Mar 27 13:03:37 2015 +0000
@@ -128,6 +128,15 @@
     }
 
     /**
+     * Helper function to write out strings.
+     * @param  str The received string.
+     * @return     Amount of characters appended to the rxCharacteristic.
+     */
+    size_t writeString(const char *str) {
+        return write(str, strlen(str));
+    }
+
+    /**
      * Override for Stream::_putc()
      * @param  c
      *         This function writes the character c, cast to an unsigned char, to stream.