[GH-ISSUE #954] wifi manager #808

Open
opened 2026-02-28 01:27:09 +03:00 by kerem · 6 comments
Owner

Originally created by @santhoshnp on GitHub (Oct 18, 2019).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/954

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
Originally created by @santhoshnp on GitHub (Oct 18, 2019). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/954 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 ```C++ #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
Author
Owner

@tablatronix commented on GitHub (Oct 18, 2019):

You do not see the access point?

<!-- gh-comment-id:543821435 --> @tablatronix commented on GitHub (Oct 18, 2019): You do not see the access point?
Author
Owner

@lbussy commented on GitHub (Oct 23, 2019):

What shows in your serial log?

<!-- gh-comment-id:545210485 --> @lbussy commented on GitHub (Oct 23, 2019): What shows in your serial log?
Author
Owner

@belazelkos commented on GitHub (Nov 27, 2019):

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"><head><meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/>";

                    ^

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!

<!-- gh-comment-id:559042894 --> @belazelkos commented on GitHub (Nov 27, 2019): 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 = "<!DOCTYPE html><html lang=\"en\"><head><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!
Author
Owner

@tablatronix commented on GitHub (Nov 27, 2019):

Why are you not posting your own issue for this?

Use the beta

<!-- gh-comment-id:559079282 --> @tablatronix commented on GitHub (Nov 27, 2019): Why are you not posting your own issue for this? Use the beta
Author
Owner

@webdevbrian commented on GitHub (Jan 14, 2020):

@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.

<!-- gh-comment-id:573986458 --> @webdevbrian commented on GitHub (Jan 14, 2020): @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.
Author
Owner

@pipo114 commented on GitHub (Apr 26, 2020):

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

<!-- gh-comment-id:619515915 --> @pipo114 commented on GitHub (Apr 26, 2020): @webdevbrian Thanks for your solution ! It helps me a lot !
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#808
No description provided.