Skip to content

Getting Memory allocation Errors #145

Answered by mobizt
saadmustafa12 asked this question in Q&A
Discussion options

You must be logged in to vote

From the test with stream callback example.

The free heap before Firebase and WiFi set up is about 274k.
The free heap after Firebase and WiFi setup is about 252k.
The free heap after two FirebaseData objects opened the session (server connected and kept session to open) is about 173k.
And after the two sessions closed, the free heap turns back to 260k.

This is the memory management problem in your code.

You should reduce the memory usage (reservation) by define the variable as local instead of global to free up memory after exit that usage scope.

36079 (After Starting Serial Communication with other MCU an....

This can't tell everything as the Serial was initiated at the beginning alre…

Replies: 2 comments 13 replies

Comment options

You must be logged in to vote
1 reply
@saadmustafa12
Comment options

Comment options

You must be logged in to vote
12 replies
@mobizt
Comment options

@mobizt
Comment options

@saadmustafa12
Comment options

@mobizt
Comment options

@mobizt
Comment options

Answer selected by saadmustafa12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants