Add HardwareSerial::write(const char *)

fixes: https://github.com/espressif/arduino-esp32/issues/55
This commit is contained in:
me-no-dev 2016-11-16 17:30:13 +02:00
parent 47babd2098
commit 56cd8f63f0

View File

@ -46,6 +46,10 @@ public:
size_t write(uint8_t); size_t write(uint8_t);
size_t write(const uint8_t *buffer, size_t size); size_t write(const uint8_t *buffer, size_t size);
inline size_t write(const char * s)
{
return write((uint8_t*) s, strlen(s));
}
inline size_t write(unsigned long n) inline size_t write(unsigned long n)
{ {
return write((uint8_t) n); return write((uint8_t) n);