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.
Dependents: BLE_ANCS_SDAPI BLE_temperature BLE_HeartRate BLE_ANCS_SDAPI_IRC ... more
Diff: services/UARTService.h
- Revision:
- 327:8c645f5694b2
- Parent:
- 326:f79c1562312f
- Child:
- 419:0b9370f628b4
--- 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.