-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to store & read back multiple char* values #18
Comments
Modified the code by replacing char* with int, then both variables are able to read back properly in next reboot. Modified code:
Log:
|
Looks like a potential bug. The code uses a static buffer which I assume without any testing is clobbering pointers, hence the return value you see. An easy fix would be to just use string, albeit that it is not as memory efficient, it will probably solve the issue. Of course if you have the time and knowledge to fix the issue as well, pull requests are most welcome. |
My intention is that getting WiFi SSID & password (currently hardcoded in code itself) and store it in filesystem and should use the same from next boot onwards. You can see the log that getting last PASSWORD updated value for SSID & PASSWORD too as 'test_passwdtest_passwd12@123'
Code:
Log:
The text was updated successfully, but these errors were encountered: