mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 17:15:53 +03:00
[GH-ISSUE #259] json is parsed perfectly but problem with strcpy #216
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#216
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 @mmr066 on GitHub (Dec 10, 2016).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/259
i have stored my custom parameter to cofig.json successfully but whenever i reboot the esp it can successfully parse the json and printing the values of various keys on Serial monitor then after that when esp try to execute strcpy to retrieve the stored value from json to any variable ,my ESP starts malfunctioning
showing the following things on Serial Monitor
exception (28):
epc1=0x402117b2 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000
ctx: cont
sp: 3fff0dc0 end: 3fff10e0 offset: 01a0
is there anybody who can help me out regarding the issue
@eketjall commented on GitHub (Dec 12, 2016):
I 've had similar problems with retirering json data.
try something like:
const char* data = root["data"];
and then perform the strcpy on the data variable instead of root["data"] directly if you don't already do it.