mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
добавлена кнопка перезагрузки
This commit is contained in:
@@ -33,7 +33,7 @@ enum TimerTask_t { WIFI_SCAN,
|
||||
UPTIME,
|
||||
SYGNAL,
|
||||
TIMES,
|
||||
MYTEST };
|
||||
PTASK };
|
||||
|
||||
//задачи которые надо протащить через loop
|
||||
enum NotAsyncActions {
|
||||
|
||||
@@ -79,6 +79,7 @@ extern WebSocketsServer standWebSocket;
|
||||
***********************************************глобальные переменные**************************************************
|
||||
**********************************************************************************************************************/
|
||||
extern String settingsFlashJson;
|
||||
extern String errorsHeapJson;
|
||||
extern String paramsFlashJson;
|
||||
extern String paramsHeapJson;
|
||||
|
||||
@@ -87,9 +88,9 @@ extern String orderBuf;
|
||||
extern String eventBuf;
|
||||
|
||||
// wifi
|
||||
extern String ssidListJson;
|
||||
extern String ssidListHeapJson;
|
||||
|
||||
extern String devListJson;
|
||||
extern String devListHeapJson;
|
||||
|
||||
// Mqtt
|
||||
extern String mqttServer;
|
||||
|
||||
@@ -10,3 +10,4 @@
|
||||
#include "MqttClient.h"
|
||||
#include "WsServer.h"
|
||||
#include "DeviceList.h"
|
||||
#include "PeriodicTasks.h"
|
||||
|
||||
5
include/PeriodicTasks.h
Normal file
5
include/PeriodicTasks.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#pragma once
|
||||
#include "Global.h"
|
||||
#include "WsServer.h"
|
||||
|
||||
extern void periodicTasksInit();
|
||||
@@ -12,6 +12,7 @@ extern void hexdump(const void* mem, uint32_t len, uint8_t cols);
|
||||
|
||||
void sendFileToWs(const char* filename, uint8_t num, size_t frameSize);
|
||||
void publishStatusWs(const String& topic, const String& data);
|
||||
void periodicWsSend();
|
||||
void sendStringToWs(const String& msg, uint8_t num, String name);
|
||||
|
||||
// void sendMark(const char* filename, const char* mark, uint8_t num);
|
||||
|
||||
Reference in New Issue
Block a user