add this code ferst loop or for slove problem reset
eset ets Jan 8 2013,rst cause:4, boot
eset ets Jan 8 2013,rst cause:2, boot
ets_intr_lock(15); // all intruptt off
ets_wdt_disable();
this code heir .....
ets_intr_unlock(15);
ets_wdt_enable();
------------------------------------------------------------
eroor masege
REANSON_DEFAULT_RST = 0, // normal startup by power on
REANSON_WDT_RST = 1, // hardware watch dog reset
// exception reset, GPIO status won’t change
REANSON_EXCEPTION_RST = 2,
// software watch dog reset, GPIO status won’t change
REANSON_SOFT_WDT_RST = 3,
// software restart ,system_restart , GPIO status won’t change
REANSON_SOFT_RESTART = 4,
REANSON_DEEP_SLEEP_AWAKE = 5, // wake up from deep-sleep