mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1020] Question : Esp8266 12E #865
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#865
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 @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 ESPbut 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
*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 ESPAttached is my exact .ino(in .txt format) file that i used to generate this data.
WiFiManager_Issue.txt
@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.
@vaz83 commented on GitHub (Mar 25, 2020):
Can you show how are you declaring your parameters?
@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