-
-
Notifications
You must be signed in to change notification settings - Fork 169
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
[Feature Request] Ability to clean up memory #12
Comments
That's a good idea, perhaps that code should just be added to |
h2zero
added a commit
that referenced
this issue
Jul 21, 2020
Adds the ability to clear all resources consumed during BLE operation when deinitializing and shutting down BLE. Useful when BLE is used intermittently or in a task that initializes, performs operations then deinitializes. By setting the clearAll parameter to true all created BLE objects will be deleted, freeing the memory for other tasks. Warning: This will invalidate any pointers that may be referencing the deleted objects.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In my situation I am only using ble to do setup, so after my device is set up I would like to be able to completely clean up the memory and move on. So it would be great if there was a method to clean up the singletons, or some way for me to delete.
I have found I can do most with client code, but the singleton objects are impossible to fix up without library changes.
Here is what I was thinking
The text was updated successfully, but these errors were encountered: