tiny->bk7231, WS ping? fix clear config

This commit is contained in:
Mit4el
2024-11-20 21:11:50 +03:00
parent 8136d47cbd
commit d6e4ac232f
25 changed files with 93 additions and 32 deletions

View File

@@ -103,6 +103,7 @@ enum TimerTask_t {
TIMES, // периодические секундные проверки
PTASK,
ST,
PiWS,
END
};

View File

@@ -162,6 +162,8 @@ extern Time_t _time_local;
extern Time_t _time_utc;
extern bool _time_isTrust;
#define WEBSOCKETS_CLIENT_MAX 5
extern int8_t ws_clients[WEBSOCKETS_CLIENT_MAX];
// extern unsigned long loopPeriod;
// extern DynamicJsonDocument settingsFlashJsonDoc;

View File

@@ -19,6 +19,6 @@ void periodicWsSend();
void sendFileToWsByFrames(const String& filename, const String& header, const String& json, int client_id, size_t frameSize);
void sendStringToWs(const String& header, String& payload, int client_id);
void disconnectWSClient(uint8_t client_id);
void sendDeviceList(uint8_t num);
int getNumWSClients();