happytm
happytm
Following is message in my serial console: ``` Appended to file: ,1623568771,6,2.92,-37,54,72,231,91] File size: 110 Reading from '/data.json' file.... [8,"Epoch","Location","V","S","T","H","P","L",1623568737,0,0.00,0,0,0,0,0,1623568761,26,2.94,-43,46,64,237,70,1623568771,6,2.92,-37,54,72,231,91] Accepting a new client! NOT_FOUND: GET http://192.168.0.9/data.json _HEADER[Host]: 192.168.0.9 _HEADER[Connection]:...
Brian, Thank you for your prompt reply. I tried both things you suggested but still I can not get rid of square bracket at end of first line.
@lorol Thank you for the link.
> Classically, you ether rewrite the whole file or append at the end.< Writing whole file when I want to add one row every few minutes is looking little inefficient....
@lorol Thanks man for your help. It works as expected with r+. ``` #include #include "LITTLEFS.h" void setup() { Serial.begin(112500); delay(1000); LITTLEFS.begin(true); File f = LITTLEFS.open("/test.json", "w"); f.print("[1623287518,24785,1535,15,6,-22,292,49,89,250,76]"); f.close(); Serial.println("Wrote...
If possible, result in following format is even better. I want to feed this directly into uPlot graphing library. ``` [ [1623049821,1623049826,1623049834], [24785,24785,24785], [1535,1535,1535], [15,15,15], [26,26,26], [28,28,28], [30,30,30], [55,55,55], [65,65,65],...
Hi Arun, Based on your guidance I was able to implement following code: ``` Serial.print("SQLite rows: "); Serial.println(SQLITE_ROW); while (sqlite3_step(res) == SQLITE_ROW) { resp += "["; resp += sqlite3_column_int(res, 0);...
Ok I will try to figure it out. Thanks.
I doubled the allocation for both but having same problem. Thanks.
I even tried almost empty function like below: void probeRequest(WiFiEvent_t event, WiFiEventInfo_t info) { processData(); } And ESP32 panic as soon as it reaches processData(); It is surprising that processData...