23#include "api/Stream.h"
34 const char*
inDevice =
"/dev/stdin") {
48 virtual void begin(
int speed) {
56 virtual void print(
const char* str) {
61 virtual void println(
const char* str =
"") {
66 virtual void print(
int str) {
71 virtual void println(
int str) {
76 virtual void flush() { out.flush(); }
78 virtual void write(
const char* str,
int len) { out.write(str, len); }
80 virtual void write(
uint8_t* str,
int len) {
81 out.write((
const char*)str, len);
84 virtual size_t write(
int32_t value) {
89 virtual size_t write(
uint8_t value) {
94 virtual int available() {
return in.rdbuf()->in_avail(); };
96 virtual int read() {
return in.get(); }
98 virtual int peek() {
return in.peek(); }
114#if ARDUINO_EMULATOR_WINDOWS
We use the FileStream class to be able to provide Serial, Serial1 and Serial2 outside of the Arduino ...
Definition FileStream.h:31
We provide the WiFi class to simulate the Arduino WIFI. In in Linux we can expect that networking is ...
Definition CanMsg.cpp:31
static FileStream Serial1(nullptr, nullptr)
Global Serial1 instance for secondary serial communication.