zhouhan0126 / WIFIMANAGER-ESP32

wifimanager-esp32
MIT License
401 stars 135 forks source link

'SPIFFS' was not declared in this scope #15

Open miljume opened 5 years ago

miljume commented 5 years ago

Hello,

I tried compiling one of the example sketches but gets the following compiler error

WifiManager.ino: 178:21: error: 'SPIFFS' was not declared in this scope File configFile = SPIFFS.open("\config.json", "w") Error compiling project sources Build failed for project 'WifiManager'

I have the latest libraries and Arduino ESP32 core fram what I know

Any clue?

klaasvanrijn commented 5 years ago

Just added SPIFFS.h after the first line

include //this needs to be first, or it all crashes and burns...

include "SPIFFS.h"

This resulted into another issue "DynamicJsonBuffer' was not declared in this scope". This was solved by installing the 5.1.4 version of ArduinoJason (instead of the 6.x.x Beta version).

George-GeorgePR commented 2 years ago

Just added SPIFFS.h after the first line

include //this needs to be first, or it all crashes and burns... #include "SPIFFS.h"

This resulted into another issue "DynamicJsonBuffer' was not declared in this scope". This was solved by installing the 5.1.4 version of ArduinoJason (instead of the 6.x.x Beta version).

Using library ESP32_BLE_Arduino at version 1.0.1 in folder: C:\Users\R\Documents\Arduino\libraries\ESP32_BLE_Arduino exit status 1 'File' was not declared in this scope

This was the error Adding "SPIFFS.h" as the first line solved it as said.