Open LasseRosenow opened 4 years ago
When I have an Action, I have to create a new ThingActionObject on every call like this:
ThingActionObject* up_action_generator(DynamicJsonDocument *input) { return new ThingActionObject("up", input, do_up, nullptr); }
But after too many calls my memory will be full and my device crashes.
This is actually an issue with all of the webthing libraries. The spec doesn’t indicate if and when old actions should be dropped.
When I have an Action, I have to create a new ThingActionObject on every call like this:
But after too many calls my memory will be full and my device crashes.