Skip to content

Instantly share code, notes, and snippets.

@jayrawatrj
jayrawatrj / wifimanager-esp32.ino
Last active May 11, 2021 11:53 — forked from anoochit/wifimanager-esp32.ino
ESP32 wifi manager and custom parameter SPIFFS
#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
#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];