[GH-ISSUE #259] json is parsed perfectly but problem with strcpy #216

Closed
opened 2026-02-28 01:24:08 +03:00 by kerem · 1 comment
Owner

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

stack>>>
3fff0f60: 3fff2b9c 3fff2c38 3ffefff8 402073d9
3fff0f70: 3ffe99d8 00000000 000003e8 feefeffe
3fff0f80: 3fff1e64 3fff19ac feefeffe feefeffe
3fff0f90: feefeffe feefeffe feefeffe feefeffe
3
Exception (4):
epc1=0x400005cb epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000

is there anybody who can help me out regarding the issue

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 >>>stack>>> 3fff0f60: 3fff2b9c 3fff2c38 3ffefff8 402073d9 3fff0f70: 3ffe99d8 00000000 000003e8 feefeffe 3fff0f80: 3fff1e64 3fff19ac feefeffe feefeffe 3fff0f90: feefeffe feefeffe feefeffe feefeffe 3 Exception (4): epc1=0x400005cb epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 is there anybody who can help me out regarding the issue
kerem closed this issue 2026-02-28 01:24:08 +03:00
Author
Owner

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

<!-- gh-comment-id:266557457 --> @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.
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#216
No description provided.