[GH-ISSUE #1020] Question : Esp8266 12E #865

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

Originally created by @Ruandv on GitHub (Mar 12, 2020).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1020

Hi,

I am using the WiFiManager to save a few of my settings to SPIFF.
I noticed that when i store this type of data then it saves fine to the SPIFF

*WM: [2] <- HTTP WiFi save  
*WM: [3] Method: POST
*WM: [2] Parameters 
*WM: [2] -------------------- 
*WM: [2] APName: Deployment Blinker
*WM: [2] FireBaseRoot: https://fakeConnection.firebaseio.com/
*WM: [2] Secret: NG2ekdzPZ6Zz1c05rNhCDN6si7CvRcWMTmSsdiAf
*WM: [2] Organization: BA
*WM: [2] SystemId: 1439
*WM: [2] -------------------- 
...
...
...
*WM: [1] Got IP Address: 
*WM: [1] 192.168.1.34 
saving config
Values retrieved from Variables
firebase_Root	https://fakeConnection.firebaseio.com/
firebase_Secret	NG2ekdzPZ6Zz1c05rNhCDN6si7CvRcWMTmSsdiAf
AP_Names	Deployment Blinker
firebase_Organization	BA
firebase_SystemId	1439
Values that will be saved to config.json
{"firebase_Root":"https://fakeConnection.firebaseio.com/","firebase_Secret":"NG2ekdzPZ6Zz1c05rNhCDN6si7CvRcWMTmSsdiAf","AP_Names":"Deployment Blinker","firebase_Organization":"BA","firebase_SystemId":"1439"}
*WM: [2] disconnect configportal 
*WM: [2] restoring usermode STA
*WM: [2] wifi status: WL_CONNECTED
*WM: [2] wifi mode: STA
*WM: [1] config portal exiting 
Connected to the WIFI...192.168.1.34
Type reset to Reset ALL the WIFI Settings the ESP
Type restart to restart the ESP

but when i try and and change any parameter value to be a bit longer than what was orignally in the data then it saves my data like this
** note ** I changed the field firebase_Organization from BA to MyOrg
and all of a sudden when i call
strcpy(firebase_Secret, firebase_Secret_param.getValue()); it returns rg
however as you can see in the line what is written by WM is correct.

What am i doing wrong

*WM: [2] <- HTTP WiFi save
*WM: [3] Method: POST
*WM: [2] Parameters 
*WM: [2] --------------------  
*WM: [2] APName: Deployment Blinker 
*WM: [2] FireBaseRoot: https://fakeConnection.firebaseio.com/ 
*WM: [2] Secret: NG2ekdzPZ6Zz1c05rNhCDN6si7CvRcWMTmSsdiAf 
*WM: [2] Organization: MyOrg 
*WM: [2] SystemId: 1439 
*WM: [2] -------------------- 
...
...
...
 *WM: [1] Got IP Address: 
*WM: [1] 192.168.1.34  
saving config 
Values retrieved from Variables 
firebase_Root	https://fakeConnection.firebaseio.com/
firebase_Secret	rg
AP_Names	Deployment Blinker
firebase_Organization	MyOrg
firebase_SystemId	1439
Values that will be saved to config.json
{"firebase_Root":"https://fakeConnection.firebaseio.com/","firebase_Secret":"rg","AP_N 
ames":"Deployment Blinker","firebase_Organization":"MyOrg","firebase_SystemId":"1439"}
*WM: [2] disconnect configportal  
*WM: [2] restoring usermode STA 
*WM: [2] wifi status: WL_CONNECTED 
*WM: [2] wifi mode: STA 
*WM: [1] config portal exiting  
Connected to the WIFI...192.168.1.34 
Type reset to Reset ALL the WIFI Settings the ESP 
Type restart to restart the ESP 

Attached is my exact .ino(in .txt format) file that i used to generate this data.

WiFiManager_Issue.txt

Originally created by @Ruandv on GitHub (Mar 12, 2020). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1020 Hi, I am using the WiFiManager to save a few of my settings to SPIFF. I noticed that when i store this type of data then it saves fine to the SPIFF <pre> *WM: [2] <- HTTP WiFi save *WM: [3] Method: POST *WM: [2] Parameters *WM: [2] -------------------- *WM: [2] APName: Deployment Blinker *WM: [2] FireBaseRoot: https://fakeConnection.firebaseio.com/ *WM: [2] Secret: NG2ekdzPZ6Zz1c05rNhCDN6si7CvRcWMTmSsdiAf *WM: [2] Organization: BA *WM: [2] SystemId: 1439 *WM: [2] -------------------- ... ... ... *WM: [1] Got IP Address: *WM: [1] 192.168.1.34 saving config Values retrieved from Variables firebase_Root https://fakeConnection.firebaseio.com/ firebase_Secret NG2ekdzPZ6Zz1c05rNhCDN6si7CvRcWMTmSsdiAf AP_Names Deployment Blinker firebase_Organization BA firebase_SystemId 1439 Values that will be saved to config.json {"firebase_Root":"https://fakeConnection.firebaseio.com/","firebase_Secret":"NG2ekdzPZ6Zz1c05rNhCDN6si7CvRcWMTmSsdiAf","AP_Names":"Deployment Blinker","firebase_Organization":"BA","firebase_SystemId":"1439"} *WM: [2] disconnect configportal *WM: [2] restoring usermode STA *WM: [2] wifi status: WL_CONNECTED *WM: [2] wifi mode: STA *WM: [1] config portal exiting Connected to the WIFI...192.168.1.34 Type reset to Reset ALL the WIFI Settings the ESP Type restart to restart the ESP </pre> but when i try and and change any parameter value to be a bit longer than what was orignally in the data then it saves my data like this ** note ** I changed the field firebase_Organization from BA to MyOrg and all of a sudden when i call ` strcpy(firebase_Secret, firebase_Secret_param.getValue());` it returns rg however as you can see in the line what is written by WM is correct. **What am i doing wrong** <pre> *WM: [2] <- HTTP WiFi save *WM: [3] Method: POST *WM: [2] Parameters *WM: [2] -------------------- *WM: [2] APName: Deployment Blinker *WM: [2] FireBaseRoot: https://fakeConnection.firebaseio.com/ *WM: [2] Secret: NG2ekdzPZ6Zz1c05rNhCDN6si7CvRcWMTmSsdiAf *WM: [2] Organization: MyOrg *WM: [2] SystemId: 1439 *WM: [2] -------------------- ... ... ... *WM: [1] Got IP Address: *WM: [1] 192.168.1.34 saving config Values retrieved from Variables firebase_Root https://fakeConnection.firebaseio.com/ firebase_Secret rg AP_Names Deployment Blinker firebase_Organization MyOrg firebase_SystemId 1439 Values that will be saved to config.json {"firebase_Root":"https://fakeConnection.firebaseio.com/","firebase_Secret":"rg","AP_N ames":"Deployment Blinker","firebase_Organization":"MyOrg","firebase_SystemId":"1439"} *WM: [2] disconnect configportal *WM: [2] restoring usermode STA *WM: [2] wifi status: WL_CONNECTED *WM: [2] wifi mode: STA *WM: [1] config portal exiting Connected to the WIFI...192.168.1.34 Type reset to Reset ALL the WIFI Settings the ESP Type restart to restart the ESP </pre> Attached is my exact .ino(in .txt format) file that i used to generate this data. [WiFiManager_Issue.txt](https://github.com/tzapu/WiFiManager/files/4326541/WiFiManager_Issue.txt)
kerem 2026-02-28 01:27:24 +03:00
  • closed this issue
  • added the
    Question
    label
Author
Owner

@Ruandv commented on GitHub (Mar 16, 2020):

Is there anyone that can please assist me with my problem? I am still having issues with the getValue() function.

<!-- gh-comment-id:599703999 --> @Ruandv commented on GitHub (Mar 16, 2020): Is there anyone that can please assist me with my problem? I am still having issues with the getValue() function.
Author
Owner

@vaz83 commented on GitHub (Mar 25, 2020):

Can you show how are you declaring your parameters?

<!-- gh-comment-id:603593596 --> @vaz83 commented on GitHub (Mar 25, 2020): Can you show how are you declaring your parameters?
Author
Owner

@Ruandv commented on GitHub (Mar 25, 2020):

My whole ino file is attached to the issue.
And it shows how I declare the parameters.

https://github.com/tzapu/WiFiManager/files/4326541/WiFiManager_Issue.txt

<!-- gh-comment-id:603632178 --> @Ruandv commented on GitHub (Mar 25, 2020): My whole ino file is attached to the issue. And it shows how I declare the parameters. https://github.com/tzapu/WiFiManager/files/4326541/WiFiManager_Issue.txt
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#865
No description provided.