Moderator: igrr
Functions_and_var_management.ino: In function 'String GetMeThatVar(String)':
Functions_and_var_management:147: error: no matching function for call to 'fs::FS::info(GetMeThatVar(String)::FSInfo&)'
Functions_and_var_management.ino:147: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:105:10: note: bool fs::FS::info(fs::FSInfo&)
bool info(FSInfo& info);
^
C:\Users\user\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0-rc1\cores\esp8266/FS.h:105:10: note: no known conversion for argument 1 from 'GetMeThatVar(String)::FSInfo' to 'fs::FSInfo&'
no matching function for call to 'fs::FS::info(GetMeThatVar(String)::FSInfo&)'
http://esp8266basic.com
A BASIC interpreter for your ESP
Working now on Autodrop3d. A 3d printer with automatic part ejection system. https://autodrop3d.com
What you said about it being local got me thinking.
Thank for bearing with me. Still trying to figure this stuff out.
Had to put
FSInfo fs_info;
#include "spiffs/spiffs.h"
#include <FS.h>
FSInfo fs_info;
void setup() {
// put your setup code here, to run once:
SPIFFS.begin();
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.println(GetMeTheRemainingSpace());
delay(1000);
}
String GetMeTheRemainingSpace()
{
String MyOut;
struct FSInfo {
size_t totalBytes;
size_t usedBytes;
size_t blockSize;
size_t pageSize;
size_t maxOpenFiles;
size_t maxPathLength;
};
SPIFFS.info(fs_info);
int Flashfree = fs_info.totalBytes - fs_info.usedBytes;
MyOut = String(Flashfree );
return MyOut;
}
http://esp8266basic.com
A BASIC interpreter for your ESP
Working now on Autodrop3d. A 3d printer with automatic part ejection system. https://autodrop3d.com