Skip to content

WiFi Functionality

Tim Fischbach edited this page May 6, 2022 · 4 revisions

Functions:

void connectWIFI(String ssid, String passwd);

Connecting to WIFI using SSID and Password given.

bool checkWIFI();

Check if WiFi is connected. (True = connected)

void resetWIFI();

Disconnects from WiFi and deletes saved SSID and Password from EEPROM.

void saveWIFI(String ssid, String password);

Saves WIFI SSID and Password to EEPROM.

String loadWIFI(String mode);

Loads SSID or Password from EEPROM. Mode keywords: SSID: "SSID" or "ssid" Password: "password" or "PASSWORD" or "pass" or "PASS"

void disconnectWIFI();

Disconnects WIFI.

void connectWIFIUser(String ssid, String password);

Launches hotspot and webserver for easy WIFI configuration. ssid is the Hotspotname and password is the password for this hotspot. When the user enters the credentials per webserver, The webserver saves automatically the entered WIFI credentials and reboots.

void connectWIFIUserHandle();

Keeps the Webserver running. Must be in a loop.

void endWIFIUser();

End WIFI configuration.