Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory full because of actions #121

Open
LasseRosenow opened this issue Aug 19, 2020 · 1 comment
Open

Memory full because of actions #121

LasseRosenow opened this issue Aug 19, 2020 · 1 comment

Comments

@LasseRosenow
Copy link

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.

@mrstegeman
Copy link
Contributor

This is actually an issue with all of the webthing libraries. The spec doesn’t indicate if and when old actions should be dropped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants