added first bits of the website and moved source code to src

This commit is contained in:
2026-03-23 23:40:14 +01:00
parent 2126ef934e
commit 8bebe5228b
5 changed files with 23 additions and 2 deletions

View File

@@ -18,8 +18,8 @@ add_subdirectory(../lib/bme280 bme280_build)
add_subdirectory(../lib/dhcp_server dhcp_server_build) add_subdirectory(../lib/dhcp_server dhcp_server_build)
add_executable(sensor-pico add_executable(sensor-pico
main.cpp src/main.cpp
webserver.c src/webserver.c
) )
# Standard Ein-/Ausgabe über USB (du siehst printf im Terminal) # Standard Ein-/Ausgabe über USB (du siehst printf im Terminal)

21
sensor-pico/fs/index.html Normal file
View File

@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Konfiguration</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>WLAN Einstellungen</h1>
<form action="/config" method="post">
<label>SSID:</label>
<input type="text" name="ssid">
<br>
<label>Passwort:</label>
<input type="password" name="password">
<br>
<input type="submit" value="Speichern">
</form>
</body>
</html>

0
sensor-pico/fs/style.css Normal file
View File