Skip to content

Commit

Permalink
Show message on hotspot mode
Browse files Browse the repository at this point in the history
  • Loading branch information
xarnze committed Mar 29, 2021
1 parent 94c9c29 commit a8f6379
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 7 additions & 3 deletions src/PixelIt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include <FastLED_NeoMatrix.h> // https://github.com/o0shojo0o/FastLED_NeoMatrix and https://github.com/o0shojo0o/Framebuffer_GFX
#include <LightDependentResistor.h> // https://github.com/o0shojo0o/Arduino-Light-Dependent-Resistor-Library v1.0.0!!!
#include <DHTesp.h>
#include <SoftwareSerial.h>
#include "ColorConverterLib.h"
#include <Wire.h>

Expand All @@ -30,8 +29,6 @@
void FadeOut(int = 10, int = 0);
void FadeIn(int = 10, int = 0);



//// MQTT Config
bool mqttAktiv = false;
String mqttUser = "";
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down
4 changes: 3 additions & 1 deletion src/PixelIt.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,6 @@ time_t getNtpTime();

void sendNTPpacket(IPAddress& address);

void Log(String function, String message);
void Log(String function, String message);

void EnteredHotspotCallback(WiFiManager* manager);

0 comments on commit a8f6379

Please sign in to comment.