MySensors Library & Examples  2.3.2
StdInOutStream.h
1 /*
2  * The MySensors Arduino library handles the wireless radio link and protocol
3  * between your home built sensors/actuators and HA controller of choice.
4  * The sensors forms a self healing radio network with optional repeaters. Each
5  * repeater and gateway builds a routing tables in EEPROM which keeps track of the
6  * network topology allowing messages to be routed to nodes.
7  *
8  * Created by Henrik Ekblad <[email protected]>
9  * Copyright (C) 2013-2019 Sensnology AB
10  * Full contributor list: https://github.com/mysensors/MySensors/graphs/contributors
11  *
12  * Documentation: http://www.mysensors.org
13  * Support Forum: http://forum.mysensors.org
14  *
15  * This program is free software; you can redistribute it and/or
16  * modify it under the terms of the GNU General Public License
17  * version 2 as published by the Free Software Foundation.
18  */
19 
20 #ifndef StdInOutStream_h
21 #define StdInOutStream_h
22 
23 #include <stdlib.h>
24 #include <stdio.h>
25 #include <string.h>
26 #include "Stream.h"
27 
31 class StdInOutStream : public Stream
32 {
33 
34 public:
40  void begin(int baud);
46  int available();
52  int read();
59  size_t write(uint8_t b);
65  int peek();
69  void flush();
73  void end();
74 };
75 
76 #endif
StdInOutStream::peek
int peek()
Not supported.
StdInOutStream
A class that prints to stdout and reads from stdin.
Definition: StdInOutStream.h:31
StdInOutStream::begin
void begin(int baud)
This function does nothing.
StdInOutStream::write
size_t write(uint8_t b)
Writes a single byte to stdout.
StdInOutStream::end
void end()
Nothing to do, flush stdout.
StdInOutStream::available
int available()
This function does nothing.
StdInOutStream::read
int read()
Reads 1 key pressed from the keyboard.
StdInOutStream::flush
void flush()
Flush stdout.