mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 09:05:56 +03:00
[GH-ISSUE #294] Where Does This Text Come From? #245
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#245
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 @TSJim on GitHub (Jan 13, 2017).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/294
First, I really want to thank everyone who has worked so hard to make this library available to us!
Here's my question: After I select the AP's SSID from my phone or computer's WiFi network settings, and I use the AP mode configuration screen to select my WiFi network SSID and enter the password and click "Save", the exact following text appears:
I cannot for the life of me figure out where this text comes from!
I've searched my entire computer (Mac), looked through every file manually in the WiFiManager distribution including in the HTML template, and I've done a Google search for the terms in the message, and I can not find it ANYWHERE!
I'm probably being really dumb, but can someone please point me to where this text lives?
Thank you so much!
-- Jim
@tzapu commented on GitHub (Jan 13, 2017):
Hi
thanks for using it
see HTTP_SAVED in WiFiManager.h
cheers
@TSJim commented on GitHub (Jan 13, 2017):
Wow, I never would have found that! Your pointer led me to exactly what I needed in order to make the needed changes.
Does that get text saved into the ESP's flash at the factory?
Thank you so much for your fast reply!
@tzapu commented on GitHub (Jan 13, 2017):
no, this is just part of the library
cheers
@TSJim commented on GitHub (Jan 13, 2017):
Hello!
You're a night person too...either that, or you aren't in the US. ;)
Wow, I just don't see where that text gets written to flash anywhere in your library files. Is it in your library, or one of the others used for ESP8266 WiFi? Just curious. I see the text in the latest version of the "extras/WiFiManager.template.html" file (I had an older one I guess), but if I change the text in that file, it does not change in the AP's "Credentials Saved" text message.
I wrote a quick test sketch (below) to just read the flash variable "HTTP_SAVED" that you referred me to, and it displays the original text just fine. I just cannot understand how that text got into the flash memory from your library.
Sorry for not knowing this stuff. I envy your programming skills! I've been using Arduinos since they came out, and have done lots of programming before and after that. I'm just new...as many people are...to the ESP8266 family. There seem to be lots of hidden knowledge.
I have a question about a programmatic reset after the credentials are saved not working (which forces me to have to press the physical reset button that I added), but I'll post that in a new thread. Maybe you can lend your expertise on that thread later as well...that would be great!
I wish GitHub had a "DONATE TO THE PROJECT" button, because I would use it right now!
Thanks!
@jpaustin commented on GitHub (Jan 20, 2017):
As for the initial way it got in... You did use an #include and that is also a key word the compiler will use to add all of that code when it does the top level task of determining the machine code which is stored in FLASH.
const char HTTP_SAVED[] PROGMEM is telling the compiler to save this array of characters in program memory (flash).