Files
gilles a8f0d6ccba Initial commit — KC868-A2 contrôleur solaire ESP32
Fonctionnalités :
- Lecture RS485 Modbus Epever Tracer 4210N (115200 bps, FC03/FC04/FC16)
- Moteur de règles JSON (LittleFS) — commande automatique des relais
- Interface web mobile-first (dashboard, règles, config, historique, EPEVER, debug)
- WiFi AP+STA simultanés avec reconnexion automatique et portail captif
- mDNS configurable (pv.local par défaut)
- Configuration registres EPEVER depuis l'UI (18 registres holding)
- Historique basse/haute résolution avec graphes canvas
- VPN WireGuard optionnel (désactivé par défaut, config via UI)
- OTA firmware + filesystem via ElegantOTA
- Deep sleep / économie d'énergie

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-09 19:25:01 +02:00

12 lines
691 B
C

#pragma once
#include <Arduino.h>
void demarrerWifi();
void gererWifi(); // boucle principale (DNS + reconnexion STA)
void connecterWifiSTA(const char *ssid, const char *pass); // sauvegarde NVS + connexion
void deconnecterWifiSTA(); // efface NVS + déconnecte STA
void getWifiStatusJson(String &out); // statut AP + STA en JSON
void scannerReseauxJson(String &out); // scan synchrone → JSON
String getMdnsHostname(); // hostname mDNS courant
bool setMdnsHostname(const char *nom); // change hostname + sauvegarde NVS