mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1813] Strange errors #1529
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#1529
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 @sds5111 on GitHub (Apr 9, 2025).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1813
Can someone please tell me why the following code will not work? It is an issue with c++, not WiFiManager itself, but I can't find an answer anywhere.
1#include <Arduino.h>
2#include <FS.h> //this needs to be first, or it all crashes and burns...
3#include <WiFiManager.h>
4void setup()
5{
6WiFiManager wifimanager;
7WiFiManager wm;
8WiFiManager.resetSettings(); //reset settings
9if (!WiFiManager.autoConnect("AutoConnectAP", "password"))
10}
Line 8 which has a red squiglly line under the "," after WiFiManager. If I place the cursor over it,, the error is "expected an identifier"
Line 9 which has a red squiglly line under WiFiManager. If I place the cursor over it,, the error is "type name is not allowed",
This code used to work, now it doesn't. I don't know what I'm doing wrong, but would greatly appreciate some help.
@timr49 commented on GitHub (Apr 17, 2025):
The code has at least five problems:
wmorwifimanager).As you said, this is all about C++ and not about WiFiManager, so you might be better off finding an appropriate forum.