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:
+6
-1
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user