added duplicate console to mqtt

This commit is contained in:
2022-02-14 19:31:24 +01:00
parent 6cacea2df3
commit 3a2e51713b
19 changed files with 262 additions and 166 deletions
+33
View File
@@ -0,0 +1,33 @@
/**
* @file outputStreamMqtt.h
* @author Alexander Klein (alex@kleiax.de)
* @brief
* @version 0.1
* @date 2022-02-14
*
* @copyright Copyright (c) 2022
*
*/
#ifndef OUTPUT_STREAM_MQTT_H
#define OUTPUT_STREAM_MQTT_H
#include <iostream>
#include <streambuf>
#include <locale>
#include <cstdio>
#include "debugMqtt.h"
class OutputBufMqtt : public std::streambuf {
public:
OutputBufMqtt(DebugMqtt* debugMqtt);
protected:
virtual std::streambuf::int_type overflow(std::streambuf::int_type c);
public:
DebugMqtt* debugMqtt;
};
#endif // OUTPUT_STREAM_MQTT_H