Components/Hosted/include/Hosted/Serial.h
Go to the documentation of this file.
Definition: Components/Hosted/include/Hosted/Serial.h:28
Serial(const String &ttyDevice)
Definition: Components/Hosted/include/Hosted/Serial.h:30
int available() override
Definition: Components/Hosted/include/Hosted/Serial.h:72
bool begin(uint32_t baud=9600)
Initialise the serial port.
Definition: Components/Hosted/include/Hosted/Serial.h:52
size_t write(const uint8_t *buffer, size_t size)
Writes characters from a buffer to output stream.
Definition: Components/Hosted/include/Hosted/Serial.h:98
size_t write(uint8_t c) override
Writes a single character to output stream.
Definition: Components/Hosted/include/Hosted/Serial.h:63
size_t readBytes(char *buffer, size_t length) override
Read chars from stream into buffer.
Definition: Components/Hosted/include/Hosted/Serial.h:88
const char * c_str() const
Get a constant (un-modifiable) pointer to String content.
Definition: WString.h:617
Definition: Components/Hosted/include/Hosted/Client.h:30