-
Notifications
You must be signed in to change notification settings - Fork 145
Description
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.