From 1e6ceee49f2416ee09c8398e9ed6ed950cf7a3c4 Mon Sep 17 00:00:00 2001 From: Jakub Date: Thu, 18 Apr 2024 20:45:59 +0200 Subject: [PATCH] json handler added --- platformio.ini | 1 + src/JsonHandler.cpp | 5 +++++ src/JsonHandler.h | 18 ++++++++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 src/JsonHandler.cpp create mode 100644 src/JsonHandler.h diff --git a/platformio.ini b/platformio.ini index 4e1cc8d..818f4f0 100644 --- a/platformio.ini +++ b/platformio.ini @@ -23,3 +23,4 @@ lib_deps = knolleary/PubSubClient@^2.8 sandeepmistry/LoRa@^0.8.0 ayushsharma82/WebSerial@^1.4.0 + bblanchon/ArduinoJson@^6.21.3 diff --git a/src/JsonHandler.cpp b/src/JsonHandler.cpp new file mode 100644 index 0000000..6da832e --- /dev/null +++ b/src/JsonHandler.cpp @@ -0,0 +1,5 @@ +#include + +JsonHandler::JsonHandler() +{ +} \ No newline at end of file diff --git a/src/JsonHandler.h b/src/JsonHandler.h new file mode 100644 index 0000000..823245c --- /dev/null +++ b/src/JsonHandler.h @@ -0,0 +1,18 @@ +#ifndef JSON_HANDLER_H +#define JSON_HANDLER_H + +#include +#include + +class JsonHandler +{ + +public: + JsonHandler(); + void serialize(); + void deserialize(); + +private: +}; + +#endif