22#include "api/Stream.h"
33 const char*
inDevice =
"/dev/stdin") {
47 virtual void begin(
int speed) {
51 virtual void print(
const char* str) {
56 virtual void println(
const char* str =
"") {
61 virtual void print(
int str) {
66 virtual void println(
int str) {
71 virtual void flush() { out.flush(); }
73 virtual void write(
const char* str,
int len) { out.write(str, len); }
75 virtual void write(
uint8_t* str,
int len) {
76 out.write((
const char*)str, len);
89 virtual int available() {
return in.rdbuf()->in_avail(); };
91 virtual int read() {
return in.get(); }
93 virtual int peek() {
return in.peek(); }
We use the FileStream class to be able to provide Serail, Serial1 and Serial2 outside of the Arduino ...
Definition FileStream.h:30
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("/dev/ttyACM0")
Global Serial1 instance for secondary serial communication.