FabGL2 2.0.0
ESP32 Display Controller and Graphics Library for ESP-IDF
Loading...
Searching...
No Matches
Stream Struct Referenceabstract

Abstract byte stream with Arduino-like read and print methods. More...

#include <fabutils.h>

Inheritance diagram for Stream:

Public Member Functions

size_t readBytes (uint8_t *buffer, size_t length)
 Reads up to length bytes, waiting until all bytes have been received or the timeout expires.
void setTimeout (int timeOutMS)
 Sets the timeout used by readBytes().

Detailed Description

Abstract byte stream with Arduino-like read and print methods.

Implemented by fabgl::Terminal and fabgl::UARTStream. Besides the methods of fabgl::Print (write(), print(), println(), printf()), a Stream provides available(), read(), peek() and readBytes().

Definition at line 441 of file fabutils.h.


The documentation for this struct was generated from the following files: