Initialisation depot

This commit is contained in:
Serge NOEL
2026-08-05 09:14:31 +02:00
commit fd3fc380d8
10 changed files with 350 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
#pragma once
#include <Arduino.h>
#include <WiFi.h>
#include <WebServer.h>
class WifiManager {
public:
WifiManager();
void begin();
bool isConnected();
void loop();
String getSSID();
String getPassword();
private:
WebServer server{80};
String ssid;
String pass;
bool apMode;
void startAP();
void handleRoot();
void handleSave();
void loadCredentials();
void saveCredentials(const String &s, const String &p);
};