#include "osapi.h"
#include "at_custom.h"
#include "user_interface.h"
#include "espconn.h"
#include "mem.h"
static ETSTimer sleepTimer;
static void ICACHE_FLASH_ATTR sleepTimerCb(void *arg)
{
os_timer_disarm(&sleepTimer);
//os_timer_disarm(&sleepTimer);
system_deep_sleep(60*1000*1000);
}
void user_init(void)
{
os_timer_disarm(&sleepTimer);
os_timer_setfn(&sleepTimer, sleepTimerCb, NULL);
os_timer_arm(&sleepTimer, 15000, 1);
}
Lets get the party started and +1
[url=https://www.banggood.com/custlink/KvGGhGF4wG[/url]
I like ESP8266 and ESP8285 and ESP32