mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1192] Can´t configure SSID and password for AP configuration page, BUG SSID spaces? #1018
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#1018
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 @donsergiobejarano on GitHub (Jan 18, 2021).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1192
Basic Infos
Hardware
WiFimanager Branch/Release: 2.7.4
Esp8266
Hardware: ESP-12e
Core Version: 2.7.4 also tested 2.4.0
Description
I configure AP name and password to access to config portal and always create an AP called "ESP-XXXXXX" without password where XXXXXX is a random number depending of ESP module.
Default configuration, with fresh install (all updated) and deleted libraries, folders and cache folders.
Arduino IDE 1.8.13
Settings in IDE
Board: Generic ESP8266 Module
builtin led: 2
upload speed 115200
cpu freq 80 mhz
crystal freq 26mhz
flashsize 1mb (fs 64k ota 470) (tried with anothers options)
flash mode (tried dout and dio)
flash frequency 40mhz
reset method dtr (aka nodemcu)
debug port disabled
debug level nothing
iwip variant v2 lower memory
vtables flash
exceptions: legacy (new can return nullptr)
erase flash: only sketch (tried with the other two options)
expressif fw nonos-sdk 2.2.1+100 (190703)
ssl support all ssl ciphers
port (the com port)
Module: Generic ESP8266 Module
Additional libraries:
UniversalTelegramBot
The other libraries are default on Arduino IDE install
Sketch (minimal test sketch)
#include <ESP8266WiFi.h>
#include <DNSServer.h>
#include <ESP8266WebServer.h>
#include <WiFiManager.h>
void setup() {
Serial.begin(115200);
WiFiManager wifiManager;
wifiManager.autoConnect("Access Configuration Page", "12345678");
Serial.println("You are connected");
}
void loop() {
}
***************** LOG *************************
*WM: [1] No Credentials are Saved, skipping connect
*WM: [2] Starting Config Portal
*WM: [2] AccessPoint set password is VALID
*WM: [1] 12345678
*WM: [3] WIFI station disconnect
*WM: [3] WiFi station enable
*WM: [2] Disabling STA
*WM: [2] Enabling AP
*WM: [1] StartAP with SSID: Access Configuration Page
*WM: [1] SoftAP Configuration
*WM: [1] --------------------
*WM: [1] ssid: ESP-510865
*WM: [1] password:
*WM: [1] ssid_len: 10
*WM: [1] channel: 1
*WM: [1] authmode:
*WM: [1] ssid_hidden:
*WM: [1] max_connection: 4
*WM: [1] country: CN
*WM: [1] beacon_interval: 100(ms)
*WM: [1] --------------------
*WM: [0] [ERROR] There was a problem starting the AP
*WM: [1] AP IP address: 192.168.4.1
*WM: [3] setupConfigPortal
*WM: [1] Starting Web Portal
*WM: [3] dns server started with ip: 192.168.4.1
*WM: [2] HTTP server started
*WM: [2] WiFi Scan completed in 2184 ms
*WM: [2] Config Portal Running, blocking, waiting for clients...
*WM: [3] -> ocsp.apple.com
*WM: [2] <- Request redirected to captive portal
*WM: [3] -> ocsp.apple.com
*WM: [2] <- Request redirected to captive portal
@charitha95 commented on GitHub (Jan 18, 2021):
I ran your sketch and it worked as expected for me. The only difference in my environment is the WiFimanager Branch. I have a clone of development.
@tablatronix commented on GitHub (Jan 18, 2021):
*WM: [0] [ERROR] There was a problem starting the APThis is coming from ESP lib, try upgrading or downgrading, or full erase your device
also this
*WM: [2] Config Portal Running, blocking, waiting for clients...
*WM: [3] -> ocsp.apple.com
*WM: [2] <- Request redirected to captive portal
implies you are connected ?
This is a problem then with your captiveportal not working, goto the 192.168.4.1 and see
@donsergiobejarano commented on GitHub (Jan 19, 2021):
Hi, it´s something wrong with the spaces.... I use underscore and works fine...
wifiManager.autoConnect("Access_Configuration_Page", "12345678");
or
wifiManager.autoConnect("Access-Configuration-Page", "12345678");
Thanks!!
@tablatronix commented on GitHub (Jan 19, 2021):
interesting
@tablatronix commented on GitHub (Feb 2, 2021):