Gbox 4.20
Grow box automation and monitoring - <a href='https://sites.google.com/site/growboxguy/'>https://sites.google.com/site/growboxguy/</a>
 
Loading...
Searching...
No Matches
SerialLog.cpp
Go to the documentation of this file.
1#include "SerialLog.h"
2
4
5void logToSerials(const __FlashStringHelper *ToPrint, bool BreakLine, uint8_t Indent)
6{
7 while (Indent > 0)
8 {
9 ArduinoSerial.print(F(" "));
10 ESPSerial.print(F(" "));
11 Indent--;
12 }
13 ArduinoSerial.print(ToPrint);
14 ESPSerial.print(ToPrint);
15 if (BreakLine)
16 {
17 ArduinoSerial.println();
18 ESPSerial.println();
19 }
20}
void logToSerials(const __FlashStringHelper *ToPrint, bool BreakLine, uint8_t Indent)
< Logging
Definition SerialLog.cpp:5
HardwareSerial & ESPSerial
Reference to the ESP Link Serial output : Mega 2560 Rev3 Serial:0(RX) 1(TX), Serial1:19(RX1) 18(TX1),...
HardwareSerial & ArduinoSerial
Reference to the Arduino Serial output : Mega 2560 Rev3 Serial:0(RX) 1(TX) also showed on USB,...