You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
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 rghowever as you can see in the line what is written by WM is correct.
What am i doing wrong
Attached is my exact .ino(in .txt format) file that i used to generate this data.
WiFiManager_Issue.txt
The text was updated successfully, but these errors were encountered: