Closed JesperThorup closed 7 months ago
Hi @JesperThorup,
I'm sorry, but I don't see anything in the code snippet that could explain your issue. The problem probably lies somewhere else. Please try to provide an MCVE.
Best regards, Benoit
Hi @bblanchon Found out it was a memory issue.. Using a string and the data went missing, but using std::string, the data stayed..
You're welcome, @JesperThorup Thank you for using ArduinoJson! Don't forget to cast a star to support the project :wink:
Describe the issue
I'm recieving an json message using MQTT. It's working fine, the first time.
what happens is, I send at payload using MQTT to my ESP32. The ESP then runs the newSchedule function, at deserializes the json object.
At the end og newSchedule, it calls the updateSchedule, and print my two start times.
Now, every 15 minutes, the updateSchedule get's called directly from my main loop, but now states the docScheduele["Items"] is empty (not printing anything.
Environment
Here is the environment that I'm using':
Reproduction
and the json payloade:
Can anyone point me to the problem?