What would be the right syntax for writing a variable lets say the int 100
into the RTC Memory of an ESP8266 12-E module and retrieve it after reboot or deep sleep.
You can use the methods from the ESP
class:
bool rtcUserMemoryRead(uint32_t offset, uint32_t *data, size_t size);
bool rtcUserMemoryWrite(uint32_t offset, uint32_t *data, size_t size);
There's an example in the ESP8266 Core for Arduino in RTCUserMemory.ino.