Skip to content

Unable to commit messages on EEPROM with this library #276

@jgarcia-atg

Description

@jgarcia-atg

Hello.

I am using IotWebConf library for configuring Wi-Fi and MQTT connection for a device based on ESP8266.
Unfortunatelly, I have to write myself some parameters on EEPROM but when y commit the write, it fails. For example:

EEPROM.write(MemWifi,48); // (default: 5; maximum: 10)
EEPROM.write(MemMQTT,48); /(default: 5; maximum: 10)
EEPROM.write(MemADC,48); //(default: 5; maximum: 10)
EEPROM.write(MemAHT,48); //(default: 5; maximum: 10)
if (EEPROM.commit()) {
Serial.println("EEPROM successfully committed");
} else {
Serial.println("ERROR! EEPROM commit failed");
}

MemWiFi and so on are previously defined like:

#define MemWifi 711

The problem is that when I call EEPROM.commit() it returns false, so I read on serial terminal "ERROR! EEPROM commit failed"
I saw another Issue (#60) and I tried his solution, but I'm still unable to commit the changes.

Any thoughs about this?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions