#include <Serial.h>
Public Member Functions | |
MySerial (StringList &li, bool &dbg, uint8_t receivePin, uint8_t transmitPin, bool inverse_logic=false) | |
virtual int | read () |
virtual size_t | write (uint8_t byte) |
Protected Attributes | |
char | inData [255] |
Helper data for a serial write. | |
int | inIdx |
How many bytes are written. | |
char | outData [255] |
Helper data for a serial read. | |
int | outIdx |
How many bytes are read. | |
StringList & | logInfos |
Hook pointer for the data logging. | |
bool & | debug |
Enable or disable the hooking. | |
Helper class to hook the SoftwareSerial calls to log the information for the console.
MySerial::MySerial | ( | StringList & | li, |
bool & | dbg, | ||
uint8_t | receivePin, | ||
uint8_t | transmitPin, | ||
bool | inverse_logic = false |
||
) |
|
virtual |
|
virtual |