Merge branch 'main' into feature/mqtt-on-main

This commit is contained in:
Cabooman 2024-02-02 18:23:46 +01:00
commit 2cea5bd578
9 changed files with 565 additions and 11 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"
@ -41,6 +41,14 @@ extern const char* ssidAP;
extern const char* passwordAP;
extern const char* versionNumber;
// Common charger parameters
extern float charger_stat_HVcur;
extern float charger_stat_HVvol;
extern float charger_stat_ACcur;
extern float charger_stat_ACvol;
extern float charger_stat_LVcur;
extern float charger_stat_LVvol;
/**
* @brief Initialization function for the webserver.
*
@ -134,4 +142,6 @@ void onOTAEnd(bool success);
template <typename T>
String formatPowerValue(String label, T value, String unit, int precision);
extern void storeSettings();
#endif