Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wifi manager #954

Open
santhoshnp opened this issue Oct 18, 2019 · 6 comments
Open

wifi manager #954

santhoshnp opened this issue Oct 18, 2019 · 6 comments
Labels
DEV Help Wanted Developer Needs Help

Comments

@santhoshnp
Copy link

santhoshnp commented Oct 18, 2019

Hi team,
I am using ESP8266 in that i am working with wifi manager i have downloaded the wifi library and i am using the example code of wifi manager

#include <ESP8266WiFi.h>          //https://github.com/esp8266/Arduino

//needed for library
#include <DNSServer.h>
#include <ESP8266WebServer.h>
#include <WiFiManager.h>         //https://github.com/tzapu/WiFiManager


void setup() {
    // put your setup code here, to run once:
    Serial.begin(115200);

    //WiFiManager
    //Local intialization. Once its business is done, there is no need to keep it around
    WiFiManager wifiManager;
    //reset saved settings
    //wifiManager.resetSettings();
    
    //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
    wifiManager.autoConnect("AutoConnectAP");
    //or use this for auto generated name ESP + ChipID
    //wifiManager.autoConnect();

    
    //if you get here you have connected to the WiFi
    Serial.println("connected...yeey :)");
}

void loop() {
    // put your main code here, to run repeatedly:
    
}

In this code run successfully without any error but when i connect to try to connect the SSID it is not discovering as AutoConnectAP i dont why i have followed these link

  1. http://www.martyncurrey.com/esp8266-and-the-arduino-ide-part-5-adding-wifimanager/
  2. https://randomnerdtutorials.com/wifimanager-with-esp8266-autoconnect-custom-parameter-and-manage-your-ssid-and-password/
    3)https://github.com/tzapu/WiFiManager
    i dont why can you please help me
@tablatronix
Copy link
Collaborator

You do not see the access point?

@tablatronix tablatronix added the DEV Help Wanted Developer Needs Help label Oct 18, 2019
@lbussy
Copy link
Contributor

lbussy commented Oct 23, 2019

What shows in your serial log?

@belazelkos
Copy link

Hi,
I have problem compiling WiFiManager for Wemos D1, even when I try to compile example for WiFiManager.

This is error message what I get:

In file included from C:\Users\B\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.6.1/tools/sdk/libc/xtensa-lx106-elf/include/sys/stdio.h:6:0,

             from C:\Users\B\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.6.1/tools/sdk/libc/xtensa-lx106-elf/include/stdio.h:63,

             from C:\Users\B\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.6.1\cores\esp8266/Arduino.h:32,

             from sketch\AutoConnect.ino.cpp:1:

C:\Users\B\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.6.1/tools/sdk/libc/xtensa-lx106-elf/include/sys/pgmspace.h:25:130: error: 'const char HTTP_HEAD []' redeclared as different kind of symbol

#define PROGMEM attribute((section( "".irom.text." FILE "." __STRINGIZE(LINE) "." __STRINGIZE(COUNTER) """)))

                                                                                                                             ^

C:\Users\B\Documents\Arduino\libraries\WiFiManager/WiFiManager.h:25:24: note: in expansion of macro 'PROGMEM'

const char HTTP_HEAD[] PROGMEM = "<html lang="en"><meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/><title>{v}</title>";

                    ^

In file included from C:\Users\B\Documents\Arduino\libraries\WiFiManager\examples\AutoConnect\AutoConnect.ino:5:0:

C:\Users\B\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.6.1\libraries\ESP8266WebServer\src/ESP8266WebServer.h:33:39: error: previous declaration of 'HTTPMethod HTTP_HEAD'

enum HTTPMethod { HTTP_ANY, HTTP_GET, HTTP_HEAD, HTTP_POST, HTTP_PUT, HTTP_PATCH, HTTP_DELETE, HTTP_OPTIONS };

                                   ^

exit status 1
Error compiling for board WeMos D1 R1.

Any help with this, please!

@tablatronix
Copy link
Collaborator

tablatronix commented Nov 27, 2019

Why are you not posting your own issue for this?

Use the beta

@webdevbrian
Copy link

@belazelkos For this error basically it boiled down to me having two versions of wifimanager installed. And the only way I found that out, was it reported I had .15 beta installed, so I uninstalled that through the library manager, then it reported that .14 was magically installed so I uninstalled that. I then from that point, installed .15 beta and it compiled and worked for me. I was getting the exact error as you. Hope this helps someone because I wasted a good 4 hours debugging this.

@pipo114
Copy link

pipo114 commented Apr 26, 2020

@webdevbrian Thanks for your solution ! It helps me a lot !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DEV Help Wanted Developer Needs Help
Projects
None yet
Development

No branches or pull requests

6 participants