r-map / rmap

rete monitoraggio ambientale partecipativo documentation at https://doc.rmap.cc
https://rmap.cc
52 stars 43 forks source link

firmware: big buffer (input_buffer) in arduinoJsonRPC #350

Closed pat1 closed 2 years ago

pat1 commented 2 years ago

in arduinoJsonRPC:

#define JRPC_BUFFER_LENGTH          (384)
char input_buffer[JRPC_BUFFER_LENGTH];

seem to me this buffer is used to serialize and deserialize json from/to arduino json document ... and use 384 bytes of static memory

to be optimized for memory and CPU

pat1 commented 2 years ago

I think is possible to put StaticJsonDocument<300> doc in stack for the time to execute the function, not for the full object life, but for now ...