-
Notifications
You must be signed in to change notification settings - Fork 715
BLE Memory Leak #1049
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
Comments
Recently some memory leak fix has been merged in this library clone in aruino-esp32 repository. |
Thank you! I'm using version 1.0.1 of ESP32 BLE Arduino, the library manager doesn't show any more recent version. I think I found it, will let you know. Thanks, sorry such newbie. |
I updated BLEDevice, BLEScan, and BLEAdvertisedDevice src files with versions dated 13 months, 4 months, and 5 days ago respectively, I'm still seeing precisely 20 bytes loss every iteration. |
But im not sure if it really is fixing all leaks, didnt test it. |
Fix is for leak when getting characteristics. I'm using a beacon, getting data from advertising packets. Only doing scan, never connect. |
I have solved this problem, by moving the following from BLEperformScan() to Setup():
This way the 'new' call is happening only once. |
Dear readers,
I'm struggling with a memory leak of 20 bytes that happens during every BLE access. I've spent some time with issue #963 which is very helpful but when I change to pointers for advertisedDevice as suggested I get the error
The offending code is
but I am not very experienced with C++ or BLE and haven't been able to figure out how to replace this code to be able to use the fix for memory leak.
My code follows.
Thank you for any help.
Best regards,
Nancy
The text was updated successfully, but these errors were encountered: