[GH-ISSUE #294] Where Does This Text Come From? #245

Closed
opened 2026-02-28 01:24:17 +03:00 by kerem · 5 comments
Owner

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:

Credentials Saved
Trying to connect ESP to network.
If it fails reconnect to AP to try again

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

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: ``` Credentials Saved Trying to connect ESP to network. If it fails reconnect to AP to try again ``` 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
kerem closed this issue 2026-02-28 01:24:17 +03:00
Author
Owner

@tzapu commented on GitHub (Jan 13, 2017):

Hi

thanks for using it

see HTTP_SAVED in WiFiManager.h

cheers

On 13 Jan 2017, at 10:38, TSJim notifications@github.com wrote:

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:

Credentials Saved
Trying to connect ESP to network.
If it fails reconnect to AP to try again
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


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/tzapu/WiFiManager/issues/294, or mute the thread https://github.com/notifications/unsubscribe-auth/AC2FkG5FO05N_vwA3c-qdm1_IGIqzUTvks5rRzgQgaJpZM4LipA2.

<!-- gh-comment-id:272390733 --> @tzapu commented on GitHub (Jan 13, 2017): Hi thanks for using it see HTTP_SAVED in WiFiManager.h cheers > On 13 Jan 2017, at 10:38, TSJim <notifications@github.com> wrote: > > 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: > > Credentials Saved > Trying to connect ESP to network. > If it fails reconnect to AP to try again > 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 > > — > You are receiving this because you are subscribed to this thread. > Reply to this email directly, view it on GitHub <https://github.com/tzapu/WiFiManager/issues/294>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AC2FkG5FO05N_vwA3c-qdm1_IGIqzUTvks5rRzgQgaJpZM4LipA2>. >
Author
Owner

@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!

<!-- gh-comment-id:272402215 --> @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!
Author
Owner

@tzapu commented on GitHub (Jan 13, 2017):

no, this is just part of the library

cheers

<!-- gh-comment-id:272406704 --> @tzapu commented on GitHub (Jan 13, 2017): no, this is just part of the library cheers
Author
Owner

@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.

#include "WiFiManager.h"

void setup() {
  // put your setup code here, to run once:
Serial.begin(115200);
String test = FPSTR(HTTP_SAVED);
Serial.println(test);

}

void loop() {
  // put your main code here, to run repeatedly:

}

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!

<!-- gh-comment-id:272410192 --> @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. ``` #include "WiFiManager.h" void setup() { // put your setup code here, to run once: Serial.begin(115200); String test = FPSTR(HTTP_SAVED); Serial.println(test); } void loop() { // put your main code here, to run repeatedly: } ``` 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!
Author
Owner

@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).

<!-- gh-comment-id:274190115 --> @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).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#245
No description provided.