Added webserver logic for the mqtt configuration

This commit is contained in:
2026-03-25 23:10:29 +01:00
parent 2a587ad106
commit 12d6d0b1e7
5 changed files with 82 additions and 22 deletions

29
fs/config.html Normal file
View File

@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Konfiguration</title>
</head>
<body>
<h1>MQTT Konfiguration</h1>
<form action="/mqtt-config" method="post">
<label>MQTT Adresse:</label>
<input type="text" name="mqtt-address">
<br>
<label>MQTT User:</label>
<input type="text" name="mqtt-user">
<br>
<label>MQTT Passwort:</label>
<input type="password" name="mqtt-password">
<br>
<label>Messfrequenz (sekunden)</label>
<input type="number" name="measure-frequency">
<br>
<label>Pushfrequenz (sekunden)</label>
<input type="number" name="push-frequency">
<br>
<input type="submit" value="Speichern">
</form>
</body>
</html>