Skip to content

Commit

Permalink
Forgot to add AP callback
Browse files Browse the repository at this point in the history
  • Loading branch information
witnessmenow committed Jun 10, 2017
1 parent 4009b0d commit e295021
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
// https://github.com/bblanchon/ArduinoJson

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

Expand All @@ -48,7 +48,7 @@ long subs = 0;
// flag for saving data
bool shouldSaveConfig = false;

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

WiFiManager wifiManager;
wifiManager.setAPCallback(configModeCallback);
wifiManager.setSaveConfigCallback(saveConfigCallback);

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

0 comments on commit e295021

Please sign in to comment.