feat: serveur web HTTP + WebSocket, API REST complète (status/temperatures/history/config)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-23 16:31:48 +02:00
parent bb913bc3ab
commit 3d21c8dc78
3 changed files with 150 additions and 1 deletions
+6 -1
View File
@@ -2,6 +2,7 @@
#include "config.h"
#include "network.h"
#include "sensors.h"
#include "web_server.h"
SondeConfig sondesConfig[NB_SONDES] = {
{ "T°C Ext", "maison/jardin/ext/temperature", 60000, 0.2f },
@@ -18,9 +19,13 @@ void setup() {
Serial.println("[BOOT] esp_jardin démarrage...");
network_init();
sensors_init();
web_server_init();
}
void loop() {
network_update();
sensors_update();
bool nouvelleMesure = sensors_update();
if (nouvelleMesure) {
web_server_notify_clients();
}
}