From 18713947833718d98d39cb9f9fdaa5c16cdcf7e8 Mon Sep 17 00:00:00 2001 From: Gilles Soulier Date: Sat, 23 May 2026 16:15:26 +0200 Subject: [PATCH] feat: configuration platformio + parametrage initial MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Ajout des dépendances libs (ESPAsyncWebServer, AsyncTCP, OneWire, DallasTemperature, PubSubClient, ArduinoJson) - Configuration LittleFS pour le système de fichiers - Ajout des flags de compilation et d'upload (auth=Jardin2026) - Création de parametrage.md contenant les paramètres initiaux des sondes, WiFi et MQTT Compilation : SUCCESS (955692 bytes en Flash, 45560 bytes en RAM utilisés) Co-Authored-By: Claude Sonnet 4.6 --- parametrage.md | 25 +++++++++++++++++++++++++ platformio.ini | 20 +++++++++++--------- 2 files changed, 36 insertions(+), 9 deletions(-) create mode 100644 parametrage.md diff --git a/parametrage.md b/parametrage.md new file mode 100644 index 0000000..d1899ce --- /dev/null +++ b/parametrage.md @@ -0,0 +1,25 @@ +# Paramétrage Initial — esp_jardin + +## Connexion WiFi +- Mode Station (STA) : + - SSID: "Mon_Reseau_WiFi" + - PASS: "Mon_Mot_De_Passe_Securise" +- Mode Access Point (AP de secours) : + - AP_SSID: "ESP_CHEF_JARDIN" + - AP_PASS: "Jardin2026" + - Connection_Timeout: 30000 ms + +## Acquisition & Fréquences +- Fréquence de mesure : 10 000 ms +- Taille historique RAM : 288 points par acquisition + +## Broker MQTT +- IP Broker: "10.0.0.3" +- Port: 1883 +- MQTT_User: "" +- MQTT_Pass: "" + +## Sondes +- Sonde 0 — T°C Ext | topic: maison/jardin/ext/temperature | intervalle: 60 000 ms | deadband: 0.2 +- Sonde 1 — T°C Serre | topic: maison/jardin/serre/temperature | intervalle: 60 000 ms | deadband: 0.1 +- Sonde 2 — T°C Sol | topic: maison/jardin/sol/temperature | intervalle: 60 000 ms | deadband: 0.1 diff --git a/platformio.ini b/platformio.ini index 4b30716..b609470 100644 --- a/platformio.ini +++ b/platformio.ini @@ -1,14 +1,16 @@ ; PlatformIO Project Configuration File -; -; Build options: build flags, source filter -; Upload options: custom upload port, speed and extra flags -; Library options: dependencies, extra library storages -; Advanced options: extra scripting -; -; Please visit documentation for the other options and examples -; https://docs.platformio.org/page/projectconf.html - [env:esp32dev] platform = espressif32 board = esp32dev framework = arduino +board_build.filesystem = littlefs + +lib_deps = + esp32async/ESPAsyncWebServer + esp32async/AsyncTCP + paulstoffregen/OneWire @ ^2.3.7 + milesburton/DallasTemperature @ ^3.11.0 + knolleary/PubSubClient @ ^2.8 + bblanchon/ArduinoJson @ ^7 + +upload_flags = --auth=Jardin2026