mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-15 07:31:21 +10:00
fix fsparam spiffs examples for esp32
This commit is contained in:
@@ -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];
|
||||
|
||||
+4
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user