fix fsparam spiffs examples for esp32

This commit is contained in:
Shawn A
2018-03-21 08:02:15 -05:00
parent 6319955cdc
commit 7279333a17
2 changed files with 8 additions and 1 deletions
@@ -1,7 +1,10 @@
#include <FS.h> // this needs to be first, or it all crashes and burns...
#include <WiFiManager.h> // https://github.com/tzapu/WiFiManager
#include <ArduinoJson.h> // https://github.com/bblanchon/ArduinoJson
// #include <spiffs.h>
#ifdef ESP32
#include <spiffs.h>
#endif
//define your default values here, if there are different values in config.json, they are overwritten.
char mqtt_server[40];
@@ -2,6 +2,10 @@
#include <WiFiManager.h> // https://github.com/tzapu/WiFiManager
#include <ArduinoJson.h> // https://github.com/bblanchon/ArduinoJson
#ifdef ESP32
#include <spiffs.h>
#endif
//define your default values here, if there are different values in config.json, they are overwritten.
//length should be max size + 1
char mqtt_server[40];