Lightly modified version of the BLE stack, that doesn't bring up a DFUService by default... as we have our own.
Fork of BLE_API by
Diff: services/UARTService.h
- Revision:
- 327:8c645f5694b2
- Parent:
- 326:f79c1562312f
--- 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.