mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1615] [ERROR] WiFiManagerParameter is out of scope when using nonblocking #1380
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#1380
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 @mazWaz on GitHub (May 24, 2023).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1615
Basic Infos
Hardware
WiFimanager Branch/Release: Master
Esp8266/Esp32:
Hardware: ESP32-Devkit
Core Version: 2.4.0, staging
Description
Problem description
i using examples/Super/OnDemandConfigPortal/OnDemandConfigPortal.ino
but addParameter not show on browser and error like this
wm:[1] [ERROR] WiFiManagerParameter is out of scopeand my custom debug
Settings in IDE
Module: ESP32-Devkit
Additional libraries:
Sketch
Sketch custom debug on String WiFiManager::getParamOut()
Debug Messages
@BlaineAtkins commented on GitHub (May 24, 2023):
I believe your issue is that you're declaring the things like
WiFiManagerParameter custom_mqtt_server("server", "mqtt server", "", 40);in setup() instead of in the global scope. See if that solves the issue.
If you want an example, here's a project I made that successfully combines custom parameters with a non-blocking portal
https://github.com/BlaineAtkins/GenericOutletBox/blob/main/generic_wifi_box.ino
@mazWaz commented on GitHub (May 25, 2023):
Solved
need define to global scope or create new global variable
Sketch