MySensors Library & Examples  2.3.2
Public Member Functions | List of all members
StdInOutStream Class Reference

Detailed Description

A class that prints to stdout and reads from stdin.

Definition at line 31 of file StdInOutStream.h.

#include <StdInOutStream.h>

+ Inheritance diagram for StdInOutStream:
+ Collaboration diagram for StdInOutStream:

Public Member Functions

void begin (int baud)
 This function does nothing. More...
 
int available ()
 This function does nothing. More...
 
int read ()
 Reads 1 key pressed from the keyboard. More...
 
size_t write (uint8_t b)
 Writes a single byte to stdout. More...
 
int peek ()
 Not supported. More...
 
void flush ()
 Flush stdout.
 
void end ()
 Nothing to do, flush stdout.
 

Member Function Documentation

◆ available()

int StdInOutStream::available ( )

This function does nothing.

Returns
always returns 1.
Examples
SecurityPersonalizer.ino.

◆ begin()

void StdInOutStream::begin ( int  baud)

This function does nothing.

Parameters
baudIgnored parameter.

◆ peek()

int StdInOutStream::peek ( )

Not supported.

Returns
always returns -1.

◆ read()

int StdInOutStream::read ( )

Reads 1 key pressed from the keyboard.

Returns
key character pressed cast to an int.
Examples
SecurityPersonalizer.ino.

◆ write()

size_t StdInOutStream::write ( uint8_t  b)

Writes a single byte to stdout.

Parameters
bbyte to write.
Returns
-1 if error else, number of bytes written.

The documentation for this class was generated from the following file: