Add ability to save parameters to flash

This commit is contained in:
Daniel 2024-01-28 22:54:01 +02:00
parent bc087dfa15
commit 79e98c997d
5 changed files with 62 additions and 4 deletions

View file

@ -1,7 +1,7 @@
#ifndef WEBSERVER_H
#define WEBSERVER_H
// Load Wi-Fi library
#include <Preferences.h>
#include <WiFi.h>
#include "../../../USER_SETTINGS.h" // Needed for WiFi ssid and password
#include "../../lib/ayushsharma82-ElegantOTA/src/ElegantOTA.h"
@ -128,4 +128,7 @@ void onOTAEnd(bool success);
template <typename T>
String formatPowerValue(String label, T value, String unit, int precision);
extern void storeParameters();
extern void restoreParameters();
#endif