cloud and udpcloud splitup and into taskmanager migrated

This commit is contained in:
feedc0de committed 2021-12-19 17:20:55 +01:00
1 parent 058745abd5
commit e0f3ceee7c
26 files changed
+214 -71

No files matched your search

+13
View File
@@ -63,6 +63,12 @@
#ifdef FEATURE_ESPNOW
#include "espnowfunctions.h"
#endif
#ifdef FEATURE_CLOUD
#include "cloud.h"
#endif
#ifdef FEATURE_UDPCLOUD
#include "udpcloud.h"
#endif
using namespace std::chrono_literals;
@@ -122,6 +128,13 @@ espcpputils::SchedulerTask schedulerTasksArr[] {
#endif
#ifdef FEATURE_ESPNOW
espcpputils::SchedulerTask { "espnow", espnow::initESPNow, espnow::handle, 100ms },
#endif
#ifdef FEATURE_CLOUD
espcpputils::SchedulerTask { "cloud", initCloud, updateCloud, 50ms },
#endif
#ifdef FEATURE_UDPCLOUD
espcpputils::SchedulerTask { "udpcloud", udpCloudInit, udpCloudUpdate, 50ms },
#endif
};
} // namespace