diff --git a/src/PixelIt.cpp b/src/PixelIt.cpp index 3bdce59..5f63ad6 100644 --- a/src/PixelIt.cpp +++ b/src/PixelIt.cpp @@ -16,7 +16,6 @@ #include // https://github.com/o0shojo0o/FastLED_NeoMatrix and https://github.com/o0shojo0o/Framebuffer_GFX #include // https://github.com/o0shojo0o/Arduino-Light-Dependent-Resistor-Library v1.0.0!!! #include -#include #include "ColorConverterLib.h" #include @@ -30,8 +29,6 @@ void FadeOut(int = 10, int = 0); void FadeIn(int = 10, int = 0); - - //// MQTT Config bool mqttAktiv = false; String mqttUser = ""; @@ -161,6 +158,12 @@ void SaveConfigCallback() shouldSaveConfig = true; } +void EnteredHotspotCallback(WiFiManager* manager) +{ + DrawTextHelper("HOTSPOT", false, false, false, false, false, false, NULL, 255, 255, 255, 3, 1); +} + + void SaveConfig() { //save the custom parameters to FS @@ -1727,6 +1730,7 @@ void setup() // Set config save notify callback wifiManager.setSaveConfigCallback(SaveConfigCallback); + wifiManager.setAPCallback(EnteredHotspotCallback); wifiManager.setMinimumSignalQuality(); // Config menue timeout 180 seconds. wifiManager.setConfigPortalTimeout(180); diff --git a/src/PixelIt.h b/src/PixelIt.h index df50447..0f10e31 100644 --- a/src/PixelIt.h +++ b/src/PixelIt.h @@ -110,4 +110,6 @@ time_t getNtpTime(); void sendNTPpacket(IPAddress& address); -void Log(String function, String message); \ No newline at end of file +void Log(String function, String message); + +void EnteredHotspotCallback(WiFiManager* manager); \ No newline at end of file