51 size_t write(uint8_t c)
override {
59 size_t write(
const uint8_t*
data,
size_t size)
override {
67 const uint8_t*
data()
const {
68 return reinterpret_cast<const uint8_t*
>(
buf_);
71 return static_cast<uint16_t
>(
len_);
101 Serial.print(__VA_ARGS__); \
102 if (g_log_stream_level >= 1) \
103 g_logbuf.print(__VA_ARGS__); \
105#define HF_LOGLN(...) \
107 Serial.println(__VA_ARGS__); \
108 if (g_log_stream_level >= 1) \
109 g_logbuf.println(__VA_ARGS__); \
114 if (g_log_stream_level >= 1) \
115 g_logbuf.println(); \
117#define HF_LOGF(...) \
119 Serial.printf(__VA_ARGS__); \
120 if (g_log_stream_level >= 1) \
121 g_logbuf.printf(__VA_ARGS__); \
125#define HF_VERBOSE(...) \
128 Serial.print(__VA_ARGS__); \
129 if (g_log_stream_level >= 2) \
130 g_logbuf.print(__VA_ARGS__); \
132#define HF_VERBOSELN(...) \
135 Serial.println(__VA_ARGS__); \
136 if (g_log_stream_level >= 2) \
137 g_logbuf.println(__VA_ARGS__); \
139#define HF_VERBOSELN_() \
143 if (g_log_stream_level >= 2) \
144 g_logbuf.println(); \
146#define HF_VERBOSEF(...) \
149 Serial.printf(__VA_ARGS__); \
150 if (g_log_stream_level >= 2) \
151 g_logbuf.printf(__VA_ARGS__); \
size_t write(const uint8_t *data, size_t size) override
const uint8_t * data() const
size_t write(uint8_t c) override
uint8_t g_log_stream_level
*brief user defined string literal for JSON values *sa std::size_t n