#include "Arduino.h"
Go to the source code of this file.
Functions | |
void | logToSerials (const __FlashStringHelper *ToPrint, bool BreakLine=true, uint8_t Indent=3) |
logs to both Arduino and ESP Link serial console, 2 optional parameters to adding a break line at after printing and the indentation in front | |
template<class logLine > | |
void | logToSerials (logLine *ToPrint, bool BreakLine=true, uint8_t Indent=3) |
template<class logLine > | |
void | logToSerials (logLine &ToPrint, bool BreakLine=true, uint8_t Indent=3) |
Variables | |
HardwareSerial & | ArduinoSerial |
Printing serial messages to the Arduino Serial output and the esp-link Microcontroller Console (uC Console) | |
HardwareSerial & | ESPSerial |
Reference to the ESP Link Serial output : Mega 2560 Rev3 Serial:0(RX) 1(TX), Serial1:19(RX1) 18(TX1), Serial2:17(RX2), 16(TX2), Serial4:15(RX3) 14(TX3) | |
void logToSerials | ( | const __FlashStringHelper * | ToPrint, |
bool | BreakLine, | ||
uint8_t | Indent | ||
) |
logs to both Arduino and ESP Link serial console, 2 optional parameters to adding a break line at after printing and the indentation in front
logs to both Arduino and ESP Link serial console, 2 optional parameters to adding a break line at after printing and the indentation in front
Definition at line 5 of file SerialLog.cpp.
void logToSerials | ( | logLine & | ToPrint, |
bool | BreakLine = true , |
||
uint8_t | Indent = 3 |
||
) |
Definition at line 34 of file SerialLog.h.
void logToSerials | ( | logLine * | ToPrint, |
bool | BreakLine = true , |
||
uint8_t | Indent = 3 |
||
) |
Definition at line 16 of file SerialLog.h.
|
extern |
Printing serial messages to the Arduino Serial output and the esp-link Microcontroller Console (uC Console)
Uses templating to handle logging multiple variable types (int,float,char,bool..)
Functions implemented in header file due to: https://stackoverflow.com/questions/10632251/undefined-reference-to-template-function
Printing serial messages to the Arduino Serial output and the esp-link Microcontroller Console (uC Console)
Printing serial messages to the Arduino Serial output and the esp-link Microcontroller Console (uC Console)
Reference to the Arduino Serial
Definition at line 33 of file Gbox420_Mega_Main.ino.
|
extern |
Reference to the ESP Link Serial output : Mega 2560 Rev3 Serial:0(RX) 1(TX), Serial1:19(RX1) 18(TX1), Serial2:17(RX2), 16(TX2), Serial4:15(RX3) 14(TX3)
ESP-link. Both SLIP and debug messages are sent to ESP over the ESP Serial link.
Definition at line 34 of file Gbox420_Mega_Main.ino.