mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
добавлена кнопка перезагрузки
This commit is contained in:
11
src/PeriodicTasks.cpp
Normal file
11
src/PeriodicTasks.cpp
Normal file
@@ -0,0 +1,11 @@
|
||||
#include "PeriodicTasks.h"
|
||||
|
||||
void periodicTasksInit() {
|
||||
//задачи редкого выполнения
|
||||
ts.add(
|
||||
PTASK, 1000 * 30, [&](void*) {
|
||||
SerialPrint(F("i"), F("HEAP"), prettyBytes(ESP.getFreeHeap()));
|
||||
periodicWsSend();
|
||||
},
|
||||
nullptr, true);
|
||||
}
|
||||
Reference in New Issue
Block a user