Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

How to release memories in loop() if I use Firebase only in setup() #251

Open
@tackelua

Description

@tackelua

Example, I have a program with below struct:

void setup()
{
    checkFree(); //#check 1
    Firebase.getString(.....);
    Firebase.push(.....);
    Firebase.push(.....);
    checkFree(); //#check 2
}
void loop()
{
    checkFree(); //#check 3
   //Do something but do not use Firebase continue
}

When I check free memory by function ESP.getFreeHeap():
#check 1: Free 34504
#check 2: Free 15816
#check 3: Free 16040

It's waste memory in loop().
How to delete Firebase or release memories?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions