Skip to content

Commit

Permalink
Added wifi manager
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbig committed May 31, 2016
1 parent eafc8f7 commit a39c05a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tiveda.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
#include <ESP8266httpUpdate.h>
#include <ESP8266WebServer.h>
#include <WiFiManager.h>

#include "gps.h"
#include "poi.h"
Expand All @@ -21,8 +23,16 @@ const char BVERSION[] PROGMEM = BOARD_VERSION;
#include "alertled.h"
#endif

/**
* Global event manager instance
*/
EventManager eventManager;

/**
* Global wifi manager instance
*/
WiFiManager wifiManager;

// Buffer to collect incoming data on serial
String serialBuffer = "";

Expand Down Expand Up @@ -62,6 +72,8 @@ void setup() {
WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
wifiConnecting = true;

wifiManager.autoConnect("tiveda");

// Load map and start gps event handlers
loadMap();

Expand Down

0 comments on commit a39c05a

Please sign in to comment.