ESP8266 EEPROM emulation in Flash RAM

Scoured the forum for storing 24 hour time data in Flash RAM to avoid loss of this data due to fresh code upload, power out or WDT reset.
I found plenty of examples for Arduinos using EEPROM but not for the ESP8266.

I run 4x ESP8266 Huzzah Feathers as temp stations (clients) sending data to an ESP8266 Huzzah Access Point (AP) that controls a 4 zone gas central heating system.

I store the day's boiler firing data in 2 arrays (1 array stores Hours, the other stores minutes in 24 hour format).

Sketch uploads & WDT resets are not uncommon so I was looking for a way to store this time data without loss during reboot/reset.

I've created a sketch to do this & thought it might be of use to others on the forum

my_Huzzah_EEPROM_11-11-2017_3.ino (4.23 KB)

there is an EEPROM library in Arduino asp8266 core

Juraj:
there is an EEPROM library in Arduino asp8266 core

Yes, I saw it but it didn't help much

dominator99:
Yes, I saw it but it didn't help much

why?