mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1169] HTTP_UPDATE_OK naming collision #999
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#999
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 @markg85 on GitHub (Dec 12, 2020).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1169
Hardware
WiFimanager Branch/Release:
Esp8266/Esp32:
I'm adding update functionality to an ESP32 project. For that i'm using the
HTTPUpdate.hfile that comes with the ESP32 framework.It, in it's header has this:
This collides with the
strings_en.hfile (soft reminder why: C++ enum is without the class in between is global scope):In my opinion both projects are wrong here.
WiFiManager should probably namespace these things as these names are definitely easy to use by other projects too.
And the ESP folks should have done
enum class HTTPUpdateResult. Though adding that now adds a load more compile errors.The "easiest" fix is to throw a namespace around those string messages. Though that does give a bit of pain in the rest of the WiFiManager source to fix the result of that namespace.
Other then that, i quite like WiFiManager now :) I had my issues with it in the beginning but ever since using the development branch it's - ironically - working super stable!
Cheers,
Mark
@tablatronix commented on GitHub (Dec 13, 2020):
I thought I had an issue for namespacing, ill make one