platform: arduino: move json alloc into .cpp
This commit is contained in:
parent
2c7501f0c2
commit
043925cb55
@ -6,6 +6,8 @@
|
||||
#include "../../Config.h"
|
||||
#include "../../Platform.h"
|
||||
|
||||
StaticJsonDocument<1024> m_json;
|
||||
|
||||
struct MQTTDevice {
|
||||
const String id;
|
||||
const String name;
|
||||
|
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user