Mixiaoxiao / Arduino-HomeKit-ESP8266

Native Apple HomeKit accessory implementation for the ESP8266 Arduino core.
MIT License
1.48k stars 278 forks source link

EEPROM on ESP8266 will be restore after arduino_homekit_setup #227

Closed super617 closed 1 year ago

super617 commented 1 year ago

Hi there: I found an issue on this lib, when i store my WiFi SSID and password on EEPROM ,the API named arduino_homekit_setup will write all the EEPROM with '0xff' , Seems of [1408, 4096) is not safe to use too, please help me to check this ,thanks!!

david19610 commented 1 year ago

I already fixed it for myself over a year ago

adityapal-singh-chauhan commented 1 year ago

yes i also found this out the hard way the eeprom is not safe for use, coz of one function that formats the entire eeprom if the stored pairing key is not recovered, i recommend using littleFS, it will solve all your problems

super617 commented 1 year ago

Thanks I will try littleFS instead