correct json buffer size optimizations
This commit is contained in:
1 parent
bbb4dd3065
commit
e6191915e3
9 files changed
+9
-15
No files matched your search
+1
-2
@@ -702,8 +702,7 @@ void stateMeasures(){
|
||||
unsigned long now = millis();
|
||||
if (now > (timer_sys_measures + TimeBetweenReadingSYS)) {//retriving value of memory ram every TimeBetweenReadingSYS
|
||||
timer_sys_measures = millis();
|
||||
const int JSON_MSG_CALC_BUFFER = JSON_OBJECT_SIZE(4);
|
||||
StaticJsonBuffer<JSON_MSG_CALC_BUFFER> jsonBuffer;
|
||||
StaticJsonBuffer<JSON_MSG_BUFFER> jsonBuffer;
|
||||
JsonObject& SYSdata = jsonBuffer.createObject();
|
||||
trc(F("Uptime (s)"));
|
||||
unsigned long uptime = millis()/1000;
|
||||
|
||||
Reference in new issue
Block a user