-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJSONmake.h
More file actions
24 lines (24 loc) · 1009 Bytes
/
Copy pathJSONmake.h
File metadata and controls
24 lines (24 loc) · 1009 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <Arduino.h>
#include "./utils/ArduinoJson-v6.18.3.h"
#include "./utils/Global_attribute.h"
class JSONmake
{
private:
/* data */
public:
JSONmake(/* args */);
~JSONmake();
void setBuffersize(size_t size_buffer);
size_t getBuffersize();
size_t getUsedBuffer();
size_t getCountKeyJSON();
void clear(JsonDocument &ref_docs = *attr.JSONdoc);
void add(String key, String value, JsonDocument &ref_docs = *attr.JSONdoc);
void add(String key, const char* value, JsonDocument &ref_docs = *attr.JSONdoc);
void add(String key, int value, JsonDocument &ref_docs = *attr.JSONdoc);
void add(String key, float value, JsonDocument &ref_docs = *attr.JSONdoc);
void add(String key, boolean value, JsonDocument &ref_docs = *attr.JSONdoc);
void remove(String key, JsonDocument &ref_docs = *attr.JSONdoc);
boolean findKey(String key, JsonDocument &ref_docs = *attr.JSONdoc);
String buildJSON(boolean clear = false, JsonDocument &ref_docs = *attr.JSONdoc);
};