platform: arduino: move json alloc into .cpp

This commit is contained in:
Torrie Fischer 2023-02-18 16:28:50 +01:00
parent 2c7501f0c2
commit 043925cb55
2 changed files with 2 additions and 3 deletions

View File

@ -6,6 +6,8 @@
#include "../../Config.h"
#include "../../Platform.h"
StaticJsonDocument<1024> m_json;
struct MQTTDevice {
const String id;
const String name;

View File

@ -12,8 +12,6 @@
#include <WiFi.h>
#endif
#include <ArduinoJson.h>
class MQTTTelemetry : public BufferedInputSource, OnlineTaskMixin {
public:
MQTTTelemetry();
@ -75,5 +73,4 @@ class MQTTTelemetry : public BufferedInputSource, OnlineTaskMixin {
WiFiClient m_wifi;
PubSubClient m_mqtt;
LogPrinter m_logPrinter;
StaticJsonDocument<1024> m_json;
};