edit:
hmmm, tested it with 0x80000000 and it woke up correctly, so it shouldn't be a "value" problem.
will test with 60min later on...
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v614f7c32
~ld
# Connecting to WiFi.
# WiFi connected
# IP address: 192.168.22.136
# after 466ms sntp ok
# Setup done
Sun Jul 22 11:23:23 2018
########################################
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v614f7c32
~ld
# Connecting to WiFi..........
# WiFi connected
# IP address: 192.168.22.136
# after 2240ms sntp ok
# Setup done
Sun Jul 22 11:57:45 2018
########################################
I'm testing on core 2.4.1 with lwip V2(lower memory)
#include <ESP8266WiFi.h>
#include <time.h>
//WIFI credentials go here
#define ssid "yourSSID"
#define wpwd "yourPASSWORD"
#define TZ "CET-1CEST,M3.5.0,M10.5.0/3"
time_t t=0;
uint64_t sleepTime = 0xD693A400; // sleep for x min
void setup() {
configTime(0, 0, "at.pool.ntp.org"); // with lwIP2
setenv("TZ", TZ, 3);
tzset();
// Serial setup
Serial.begin(74880);
Serial.print(F("\n\n# Connecting to "));
Serial.print(ssid);
//Wifi Setup
WiFi.persistent(true);
WiFi.mode(WIFI_STA);
WiFi.begin(ssid, wpwd);
while (WiFi.status() != WL_CONNECTED) { // could be endless
Serial.print(".");
delay(200);
}
Serial.println(F("\n# WiFi connected"));
Serial.print(F("# IP address: "));
Serial.println(WiFi.localIP());
while (t < 50000) {
t=time(nullptr);
delay(10);
}
Serial.print("# Setup done\n# sntp ok after ");
Serial.print(String(millis()) + " ms\n# ");
Serial.print(ctime(&t));
Serial.println(F("########################################"));
}
void loop() {
ESP.deepSleep(sleepTime);
delay(100);
}