@spjrc set a timer to call a function after 6-12 houre, then call ESP.restart() from that function.