mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1364] Question about AutoConnectWithFSParameters.ino code example #1170
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#1170
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 @sgrass-valhalla on GitHub (Feb 19, 2022).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1364
Hi all, sorry for the newbie question, I'm trying to understand the code example here: https://github.com/tzapu/WiFiManager/blob/master/examples/Parameters/SPIFFS/AutoConnectWithFSParameters/AutoConnectWithFSParameters.ino
specifically this code segment:
I'm not familiar with how the #ifdef-#else-#endif structure works. I understand the logic here, but the code has more open parentheses '{' than closing ones '}', and I'm getting complications errors when I try to integrate this code with mine.
Lines
if ( ! deserializeError ) {andif (json.success()) {are not supposed to be used together (due to the#ifdef) but they are both closed by} else {and it seems that the compiler expects both '{' to be closed.Explanations appreciated. tx