mirror of
https://github.com/bjoernellens1/ESP32-PowerGuard.git
synced 2024-11-23 17:35:07 +00:00
20 lines
444 B
C
20 lines
444 B
C
|
#ifndef WiFiModule_h
|
||
|
#define WiFiModule_h
|
||
|
|
||
|
#include <WiFi.h>
|
||
|
|
||
|
class WiFiModule {
|
||
|
public:
|
||
|
WiFiModule(const char* ssid, const char* password);
|
||
|
void connect();
|
||
|
bool isConnected();
|
||
|
IPAddress getLocalIP();
|
||
|
void printConnectionInfo();
|
||
|
|
||
|
private:
|
||
|
char _ssid[32]; // Speicher für SSID und Passwort reservieren
|
||
|
char _password[32]; // Angenommene Maximalwerte, entsprechend anpassen falls nötig
|
||
|
};
|
||
|
|
||
|
#endif
|