Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By GentleGiant
#20170
reaper7 wrote:I think that this is good option for You:
https://github.com/tzapu/WiFiManager

Code: Select all#include <WiFiClient.h>
#include <EEPROM.h>
#include <ESP8266mDNS.h>
#include <WifiManager.h>

WiFiManager wifi(0);

void setup() {
  Serial.begin(115200);
  delay(10);
  Serial.println("INIT");
 
  wifi.autoConnect("AP_FOR_CONF");

  Serial.println("DONE");
}

void loop() {
}


Thank you. I need something like that too. But I dont have the file WifiManager.h some I cant compile. I couldn't find how to add it. How should I add the WifiManager.h file?

GG
User avatar
By reaper7
#20175 @GentleGiant - please...this is question "how to use arduino"
download this: https://github.com/tzapu/WiFiManager/archive/master.zip
and follow this from "Importing a .zip Library":
http://www.arduino.cc/en/Guide/Libraries
User avatar
By ReNNo_BiH
#20233
GentleGiant wrote:
reaper7 wrote:I think that this is good option for You:
https://github.com/tzapu/WiFiManager

Code: Select all#include <WiFiClient.h>
#include <EEPROM.h>
#include <ESP8266mDNS.h>
#include <WifiManager.h>

WiFiManager wifi(0);

void setup() {
  Serial.begin(115200);
  delay(10);
  Serial.println("INIT");
 
  wifi.autoConnect("AP_FOR_CONF");

  Serial.println("DONE");
}

void loop() {
}


Thank you. I need something like that too. But I dont have the file WifiManager.h some I cant compile. I couldn't find how to add it. How should I add the WifiManager.h file?

GG


Try replacing
Code: Select all#include <WifiManager.h>
with
Code: Select all#include <WiFiManager.h>

Looks like there is typo .

jra wrote:See also https://github.com/jeffryr/ESP8266-Sket ... er/Onboard

This one works perfectly, thanks a lot. Strange that google couldn't help me finding these sketches. But this community rocks :)