Release 0.3.1
============= Enhancements ~~~~~~~~~~~~ * added helper UARTService::writeString() to simplify writing of strings. Bugfixes ~~~~~~~~ none.
This commit is contained in:
parent
c936446c42
commit
1d21e85a06
1 changed files with 9 additions and 0 deletions
|
@ -127,6 +127,15 @@ public:
|
|||
return origLength;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
|
|
Loading…
Reference in a new issue