mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #884] Request redirected to captive portal #747
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#747
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @GastonMelo on GitHub (May 13, 2019).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/884
until 3 days ago I was using WiFiManager without problems. I install Arduino 1.8.9 and everything stop working with this message on serial monitor:
xxxxxxxxxxxxxxxxxxx
*WM: Sent wifi save page
*WM: Connecting to new AP
*WM: Connecting as wifi client...
*WM: Connection result:
*WM: 4
*WM: Failed to connect.
So I reinstall arduino 1.8.7 and try again but the error is still there, dont know where and why.
this are my headers:
#include <FS.h>
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>
#include <DNSServer.h>
#include <WiFiManager.h>
#include "ArduinoJson.h"
and I using this code:
WiFiManagerParameter custom_WiFiRelay("WiFiRelay", "WiFiRelayName", WiFiRelay, 21);
// Connect to WiFi network
WiFiManager wifiManager;
//set config
wifiManager.setSaveConfigCallback(saveConfigCallback);
//agregar nuevo parametro
wifiManager.addParameter(&custom_WiFiRelay);
//RESET WIFIMANAGER********
//wifiManager.resetSettings();
//*******************************************************
wifiManager.autoConnect("WiFiRelay");//coment serial.begin()
if (!MDNS.begin("esp01")) {}
server.begin();
strcpy(WiFiRelay, custom_WiFiRelay.getValue());
if (shouldSaveConfig) {
Serial.println("saving config");
DynamicJsonBuffer jsonBuffer;
JsonObject& json = jsonBuffer.createObject();
json["WiFiRelay"] = WiFiRelay;
File configFile = SPIFFS.open("/config.json", "w");
if (!configFile) {
Serial.println("failed to open config file for writing");
}
}
I check the router, disable firewall PC, re-re-install arduino 1.8.9 and 1.8.7. Check code and compared to working examples. How can something that was working with arduino 1.8.7 until 4 days ago stop working installing arduino 1.8.9?
@tablatronix commented on GitHub (May 13, 2019):
erase your flash
@GastonMelo commented on GitHub (May 13, 2019):
thanks, solve the problem.