I am a noob. I am using ESP8266 for a simple wifi controlled On/Off switch for home. My requirement is i want to store GPIO pin status (0 or 1) in to eeprom when changes made. So the device can remember previous state when power cut happens (it happens often in my country).
Is it possible? If yes provide me a sample code...
Thanks in advance.