mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #925] Change template strings from device code #783
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#783
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 @array81 on GitHub (Aug 14, 2019).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/925
I think I understood how edit template file and the generate HTTP_HEAD, HTTP_STYLE, ... strings.
Is there a way to pass these strings on my device code without edit WifiManager.h file?
I'd like don't change your code but I need change HTTP_HEAD_END to add imgae logo by base64 and HTTP_STYLE to change color button.
@tablatronix commented on GitHub (Aug 14, 2019):
I never figured out a way to predefine in sketch or include before library, I have seen it done, I just have no idea how to do it.
@array81 commented on GitHub (Aug 20, 2019):
I think a similar feature should be added.
You should not have to change the library for this kind of thing and it is inconvenient if one has multiple projects with different templates.
@tablatronix commented on GitHub (Aug 20, 2019):
you can override in build flags
#ifndef WIFI_MANAGER_OVERRIDE_STRINGSand set your own file however you want
@tablatronix commented on GitHub (Aug 20, 2019):
There is an issue to create a few hooks for basic stuff. Ill check where we left off on the header hook
@tablatronix commented on GitHub (Aug 20, 2019):
you know you can inject in head right ?
a callback might be better, but for now this might help you
@array81 commented on GitHub (Aug 20, 2019):
On version 0.14 I not found WIFI_MANAGER_OVERRIDE_STRINGS reference, what is it?
@tablatronix commented on GitHub (Aug 20, 2019):
Development branch
@array81 commented on GitHub (Aug 21, 2019):
In development version I can see this warning on "strings_en.h":
!!! THIS DOES NOT WORK, you cannot define in a sketch, if anyone one knows how to order includes to be able to do this help!Are you sure that WIFI_MANAGER_OVERRIDE_STRINGS works?
@tablatronix commented on GitHub (Aug 21, 2019):
It has not been tested, and you cannot define in sketch but you can define in build flags, no idea if arduino lets you do that or not, but platformio does.