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
Revision 327:8c645f5694b2, committed 2015-03-27
- 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.
