[temporary commit]

This commit is contained in:
Phat Nguyen
2024-04-03 11:40:46 +07:00
parent 8e032927c6
commit c1ab99ba8d
201 changed files with 506038 additions and 0 deletions

38
src/Main/PrintLog.h Normal file
View File

@ -0,0 +1,38 @@
#ifndef _PRINT_LOG_H_
#define _PRINT_LOG_H_
#include <Arduino.h>
class PrintLog
{
private:
Stream &log;
String tag;
public:
PrintLog(Stream &log, String tag);
~PrintLog();
void logInfo(String &info);
void logInfo(const char* info);
void logError(String &err);
void logError(const char* err);
void logWarning(String &warning);
void logWarning(const char* warning);
};
/**
* @brief Construct a new Print Log:: Print Log object
*
* @param log Log stream
* @param tag Tag name
*/
PrintLog::PrintLog(Stream &log, String tag) : log(log), tag(tag)
{
}
PrintLog::~PrintLog()
{
}
#endif /** _PRINT_LOG_H_ */