Skip to content

EEPROM, and WiFiClient issues with updated library . #2846

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

Closed
tommakov opened this issue May 31, 2019 · 5 comments
Closed

EEPROM, and WiFiClient issues with updated library . #2846

tommakov opened this issue May 31, 2019 · 5 comments
Labels
Status: Stale Issue is stale stage (outdated/stuck)

Comments

@tommakov
Copy link

tommakov commented May 31, 2019

Using the libraries from the middle of 2018 I was able to successfully use the EEPROM and WiFiClientSecure libraries. After updating the libraries to the current versions.

1 ) The EEPROM library only reads zeros as the current data state, where previously the unprogrammed state was all "ones" as in 0xFF's with data being present that I previously programmed.

2 ) When operating in Access Point mode directly to a PC's web browser, the WiFiClientSecure was able to send messages that got posted on the web page using the println function. Now with the new libraries nothing gets posted but the println function return the number of bytes "supposedly" sent.

What do I need to change in my software to get both of these libraries working again? Or are these "bugs" in the updated libraries?

Tom

@lbernstone
Copy link
Contributor

lbernstone commented May 31, 2019

EEPROM was just me not knowing the spec. Added to #2841
https://github.com/espressif/arduino-esp32/blob/master/libraries/EEPROM/src/EEPROM.cpp#L114

--       memset(key_data, 0, size);
++       memset(key_data, 0xFF, size);

@tommakov
Copy link
Author

tommakov commented Jun 2, 2019

I changed the one line of code mentioned above and it did not fix the issue. It still reads zeros.

@lbernstone
Copy link
Contributor

You'll need to wipe the EEPROM (or the device). It only fills the empty space on init.

@stale
Copy link

stale bot commented Aug 1, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Status: Stale Issue is stale stage (outdated/stuck) label Aug 1, 2019
@stale
Copy link

stale bot commented Aug 15, 2019

This stale issue has been automatically closed. Thank you for your contributions.

@stale stale bot closed this as completed Aug 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Stale Issue is stale stage (outdated/stuck)
Projects
None yet
Development

No branches or pull requests

2 participants