cgnuino
Public Member Functions | List of all members
CgnSerial Class Reference

Communicates with external control apprication running on the PC. More...

#include <cgnuino.h>

Public Member Functions

 CgnSerial (char=10, char=9)
 Constructor. More...
 
String update (bool=true)
 Checks the serial buffer for a new input line. More...
 
int getCode ()
 Shows decomposed code for the last serial input.
 
String getValue ()
 Shows decomposed value for the last serial input.
 
void append (String)
 Appends a new value to output buffer. More...
 
void out ()
 Emits buffered text to serial output.
 
void clear ()
 Clears existing output buffer.
 

Detailed Description

Communicates with external control apprication running on the PC.

Constructor & Destructor Documentation

CgnSerial::CgnSerial ( char  e = 10,
char  s = 9 
)

Constructor.

Parameters
eEOL for serial inputs (by default \n).
sSeparator for serial outputs (by default \t).

Member Function Documentation

void CgnSerial::append ( String  s)

Appends a new value to output buffer.

Parameters
sAppended string.
String CgnSerial::update ( bool  decompose = true)

Checks the serial buffer for a new input line.

Parameters
decomposeWhether to decompose the input text (see Details of the class).

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