platform: arduino: move json alloc into .cpp
This commit is contained in:
parent
2c7501f0c2
commit
043925cb55
@ -6,6 +6,8 @@
|
|||||||
#include "../../Config.h"
|
#include "../../Config.h"
|
||||||
#include "../../Platform.h"
|
#include "../../Platform.h"
|
||||||
|
|
||||||
|
StaticJsonDocument<1024> m_json;
|
||||||
|
|
||||||
struct MQTTDevice {
|
struct MQTTDevice {
|
||||||
const String id;
|
const String id;
|
||||||
const String name;
|
const String name;
|
||||||
|
@ -12,8 +12,6 @@
|
|||||||
#include <WiFi.h>
|
#include <WiFi.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <ArduinoJson.h>
|
|
||||||
|
|
||||||
class MQTTTelemetry : public BufferedInputSource, OnlineTaskMixin {
|
class MQTTTelemetry : public BufferedInputSource, OnlineTaskMixin {
|
||||||
public:
|
public:
|
||||||
MQTTTelemetry();
|
MQTTTelemetry();
|
||||||
@ -75,5 +73,4 @@ class MQTTTelemetry : public BufferedInputSource, OnlineTaskMixin {
|
|||||||
WiFiClient m_wifi;
|
WiFiClient m_wifi;
|
||||||
PubSubClient m_mqtt;
|
PubSubClient m_mqtt;
|
||||||
LogPrinter m_logPrinter;
|
LogPrinter m_logPrinter;
|
||||||
StaticJsonDocument<1024> m_json;
|
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user