I recently purchased an Esp32 and am doing some tests using Arduino IDE.
In one of the tests, I am recording a lot of .txt files with some text inside them in the flash memory, however, I would like to know how I can check the remaining space in the flash memory. I'm checking the flash memory space with
Serial.println(ESP.getFlashChipSize());, however, the returned value is always the same.
Is this the right command to check? Why is it always with the same value?