Skip to content

EEPROM, and WiFiClient issues with updated library . #2846

Closed
@tommakov

Description

@tommakov

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

Activity

lbernstone

lbernstone commented on May 31, 2019

@lbernstone
Contributor

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

tommakov commented on Jun 2, 2019

@tommakov
Author

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

lbernstone

lbernstone commented on Jun 2, 2019

@lbernstone
Contributor

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

stale

stale commented on Aug 1, 2019

@stale

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 commented on Aug 15, 2019

@stale

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: StaleIssue is stale stage (outdated/stuck)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      EEPROM, and WiFiClient issues with updated library . · Issue #2846 · espressif/arduino-esp32