mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1536] Parameters aren't showing on the portal. - *wm:[ERROR] WiFiManagerParameter is out of scope #1309
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#1309
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 @bentodman on GitHub (Dec 22, 2022).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1536
Basic Infos
Hardware
WiFimanager Branch/Release: Master
Esp8266
Hardware: ESP-12e, esp01, esp25
Core Version: 2.0.3
Description
Everything seems to compile and upload fine.
When i navigate to the portal i'm unable to see any parameters / input forms.
In the serial monitor I'm getting an error *wm:[ERROR] WiFiManagerParameter is out of scope.
I've tried stripping this back out and i'm struggling to get it to work, sorry i can't be anymore detailed but happy to test etc as needed!
Settings in IDE
Module: Wemos D1 Mini (Clone)
Additional libraries:
Sketch
Debug Messages
@tablatronix commented on GitHub (Dec 22, 2022):
You are setting up params in setup, but starting the portal in loop, so they ARE out of scope
@bentodman commented on GitHub (Dec 22, 2022):
Doh! That makes sense, Thank you!
@MEHUL95 commented on GitHub (Jan 1, 2023):
@bentodman did you found out a solution for this issue? I tried separating wifimanager configuration in a different function and calling that function from void.setup() from void.loop() but it didn't work, setup tab seems blank, I cannot fill any custom parameters.
@Bruce17 commented on GitHub (Jan 2, 2023):
@MEHUL95 I had the same issue even with the example code OnDemandConfigPortal.ino
I moved the
WiFiManagerParameterinto the global scope f.e.:... and changed the code inside the setup to something like:
Adjusted code example