btclock_v3/src/main.cpp

30 lines
753 B
C++
Raw Normal View History

2023-11-06 19:16:07 +00:00
#include "Arduino.h"
#include <WiFiManager.h>
#define WEBSERVER_H
#include "ESPAsyncWebServer.h"
2023-11-07 00:11:12 +00:00
#include "lib/config.hpp"
//char ptrTaskList[400];
2023-11-06 19:16:07 +00:00
extern "C" void app_main()
{
initArduino();
Serial.begin(115200);
2023-11-07 20:26:15 +00:00
setup();
2023-11-06 19:16:07 +00:00
2023-11-07 00:11:12 +00:00
while (true)
{
// vTaskList(ptrTaskList);
// Serial.println(F("**********************************"));
// Serial.println(F("Task State Prio Stack Num"));
// Serial.println(F("**********************************"));
// Serial.print(ptrTaskList);
// Serial.println(F("**********************************"));
if (eventSourceTaskHandle != NULL)
xTaskNotifyGive(eventSourceTaskHandle);
vTaskDelay(pdMS_TO_TICKS(5000));
2023-11-07 00:11:12 +00:00
}
2023-11-06 19:16:07 +00:00
}