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 leak with mgos_bt_gattc_write() #22

Open
cnhyades opened this issue May 30, 2021 · 0 comments
Open

Memory leak with mgos_bt_gattc_write() #22

cnhyades opened this issue May 30, 2021 · 0 comments
Assignees

Comments

@cnhyades
Copy link

cnhyades commented May 30, 2021

I'm seeing memory leaks with mgos_bt_gattc_write(). In my project, this function is being called periodically every 100 to 500ms. I see mgos_get_min_free_heap_size() reducing after sometime. If I disable calling mgos_bt_gattc_write(), I don't see any leaks. I couldn't find anything suspicious in that function or even in the underlying esp's BT function.

Setup:
ESP32 BT Mode: Central and Peripheral Role
Wi-Fi is Enabled, MQTT is disabled.
RPC-HTTP Server is Enabled to received RPC commands over IP.
HTTP Client is enabled to post metrics data(received via Bluetooth Notifications)
mDash, sntp, cron, fstab and vfs-fs-lfs are used

@rojer rojer self-assigned this May 30, 2021
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