Skip to content
Branch: master
Find file Copy path
Find file Copy path
2 contributors

Users who have contributed to this file

@tzapu @robertoostenveld
39 lines (28 sloc) 1.16 KB
#include <ESP8266WiFi.h> //
//needed for library
#include <DNSServer.h>
#include <ESP8266WebServer.h>
#include <WiFiManager.h> //
void setup() {
// put your setup code here, to run once:
//Local intialization. Once its business is done, there is no need to keep it around
WiFiManager wifiManager;
//reset saved settings
//set custom ip for portal
//wifiManager.setAPStaticIPConfig(IPAddress(10,0,1,1), IPAddress(10,0,1,1), IPAddress(255,255,255,0));
//fetches ssid and pass from eeprom and tries to connect
//if it does not connect it starts an access point with the specified name
//here "AutoConnectAP"
//and goes into a blocking loop awaiting configuration
//or use this for auto generated name ESP + ChipID
//if you get here you have connected to the WiFi
Serial.println("connected...yeey :)");
void loop() {
// put your main code here, to run repeatedly:
You can’t perform that action at this time.