I have an HTML form where the user can add time data ( start and end ) to the form and can select multiple days to save it. ( this is for a circular pump daily on off time for every day ). The form looks like this from the user point of view This ..
Category : arduinojson
I think this is probably a really simple question, but I am as much a C++ developer as the guys at the walmart meat counter are butchers. Say I have: class Parent{ protected: ~Parent(){}; }; class ChildA : public Parent{ }; struct Container{ Parent *child; //Tried this, causes: munmap_chunk(): invalid pointer ~Container(){ delete &child; } ..
I’m writing some script for esp32 and struggling to serialize a json. Used libraries are HTTPClient and ArduinoJson. String payload = http.getString(); Serial.println(payload); deserializeJson(result, payload); const char* usuario = result["user"]; Serial.println("##########"); Serial.println(usuario); The received payload is: {"ip":"10.57.39.137","area":"[{"id":"3","text":"BOX"}]","user":"[{"id":"6270","text":"ANDRE LARA OLIVEIRA E SILVA"}]","teamId":6,"id":4,"siteId":2,"userCreate":"100059527","dateCreate":"2020-11-19T08:49:03.957","userUpdate":null,"dateUpdate":null} and i need to retrieve id and text from "user" key. Its fine to ..
I’m trying to save JSON objects in a C++ struct using ArduinoJSON and am hitting some snags. My initial struct was the following: struct Doc { ArduinoJson::DynamicJsonDocument data; }; but this threw an error: " malloc: *** error for object 0xffffffffffff0098: pointer being freed was not allocated Make The Thing(18437,0x104da9880) malloc: *** set a breakpoint ..
Recent Comments