Skip to main content
4 of 4
removed tag from title, syntax highlighting

How to read and write EEPROM in ESP8266

I need to know how I can write integer values in EEPROM and retain the value on power on.

char *Red = strstr(myTestUrl, "/R");
if (Red) {
  int RedValue  = atoi(Red + 2);
  analogWrite(12, RedValue);
  Serial.println("Red :");
  Serial.println(RedValue);
}

I want to write RedValue in EEPROM. How can it be done?

MICRO
  • 500
  • 1
  • 8
  • 20