Skip to content

Commit e295021

Browse files
committed
Forgot to add AP callback
1 parent 4009b0d commit e295021

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/ESP8266/ChannelStatisticsWithWifiManagerAndDoubleReset/ChannelStatisticsWithWifiManagerAndDoubleReset.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
// https://github.com/bblanchon/ArduinoJson
2424

2525
#include <WiFiManager.h>
26-
// For configuring the Wifi credentials without re-programing
26+
// For configuring the Wifi credentials without re-programing
2727
// Availalbe on library manager (WiFiManager)
2828
// https://github.com/tzapu/WiFiManager
2929

@@ -48,7 +48,7 @@ long subs = 0;
4848
// flag for saving data
4949
bool shouldSaveConfig = false;
5050

51-
// Number of seconds after reset during which a
51+
// Number of seconds after reset during which a
5252
// subseqent reset will be considered a double reset.
5353
// This sketch uses drd.stop() rather than relying on the timeout
5454
#define DRD_TIMEOUT 10
@@ -89,6 +89,7 @@ void setup() {
8989
loadConfig();
9090

9191
WiFiManager wifiManager;
92+
wifiManager.setAPCallback(configModeCallback);
9293
wifiManager.setSaveConfigCallback(saveConfigCallback);
9394

9495
// Adding an additional config on the WIFI manager webpage for the API Key and Channel ID

0 commit comments

Comments
 (0)