abc
Fork of BLE_API by
Diff: services/UARTService.h
- Revision:
- 327:8c645f5694b2
- Parent:
- 326:f79c1562312f
- Child:
- 408:c8e057dcbb26
- Child:
- 420:0b9370f628b4
diff -r f79c1562312f -r 8c645f5694b2 services/UARTService.h --- 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.