Code: Select all
wakeTimerHandle = xTimerCreate("Wake Timer", 300000 / portTICK_PERIOD_MS, pdFALSE, 0, onTimer);
if(wakeTimerHandle == NULL) {
ESP_LOGE(TAG, "Wake Timer Creation Failed");
}
else {
xTimerStart(wakeTimerHandle, portMAX_DELAY);
timerEnabled = true;
ESP_LOGI(TAG, "Wake Timer Started");
}
What suggests to me an overflow issue is that if I set it for 30000 ms (30 seconds) it works fine and same for 3000 ms.