11 #ifndef _SMING_CORE_DEBUG_H_ 12 #define _SMING_CORE_DEBUG_H_ 14 #include "HardwareSerial.h" 17 #include "../Services/CommandProcessing/CommandProcessingIncludes.h" 91 size_t write(uint8_t)
override;
95 bool useDebugPrefix =
true;
96 bool newDebugLine =
true;
Delegate< void(char dbgChar)> DebugPrintCharDelegate
Delegate constructor usage: (&YourClass::method, this)
Definition: Debug.h:22
Provides debug output to stream (e.g. Serial) or delegate function handler.
Definition: Debug.h:50
void initCommand()
Enable control of debug output from CLI command handler output.
The string class.
Definition: WString.h:104
Provides formatted output to stream.
Definition: Print.h:31
void setDebug(DebugPrintCharDelegate reqDelegate)
Configure debug to use delegate handler for its output.
Do not use debug prefix.
Definition: Debug.h:36
DebugClass Debug
Global instance of Debug object.
Definition: CommandOutput.h:17
size_t write(uint8_t) override
Writes a single character to output stream.
eDBGPrefix
Debug prefix state.
Definition: Debug.h:35
Structure for debug options.
Definition: Debug.h:27
Use debug prefix.
Definition: Debug.h:37
bool status()
Get debug status.
Definition: Debug.h:73
void start()
Start debug output.
void stop()
Stop debug output.
DebugClass()
Instantiate a debug object.