Example for using
Posted: Sat Nov 21, 2015 8:08 pm
Hello,
Is there any example of how to use this.
https://github.com/esp8266/Arduino/blob ... ce.md#info
I have tried.
but get the following msg at compile time
Is there any example of how to use this.
https://github.com/esp8266/Arduino/blob ... ce.md#info
I have tried.
Code: Select all
struct FSInfo {
size_t totalBytes;
size_t usedBytes;
size_t blockSize;
size_t pageSize;
size_t maxOpenFiles;
size_t maxPathLength;
};
FSInfo fs_info;
SPIFFS.info(fs_info);
int FlashSize = totalBytes;
FlashSize -= totalBytes;
but get the following msg at compile time
Code: Select all
Functions_and_var_management.ino: In function 'String GetMeThatVar(String)':
Functions_and_var_management.ino:144:24: error: no matching function for call to 'fs::FS::info(GetMeThatVar(String)::FSInfo&)'
Functions_and_var_management.ino:144:24: note: candidate is:
In file included from ESP8266Basic.ino:31:0:
C:\Users\user\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0-rc1\cores\esp8266/FS.h:96:10: note: bool fs::FS::info(uint32_t*, uint32_t*)
bool info(uint32_t *total, uint32_t *used);
^
C:\Users\user\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0-rc1\cores\esp8266/FS.h:96:10: note: candidate expects 2 arguments, 1 provided
Functions_and_var_management.ino:145:21: error: 'totalBytes' was not declared in this scope
no matching function for call to 'fs::FS::info(GetMeThatVar(String)::FSInfo&)'