mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
tiny->bk7231, WS ping? fix clear config
This commit is contained in:
@@ -103,6 +103,7 @@ enum TimerTask_t {
|
||||
TIMES, // периодические секундные проверки
|
||||
PTASK,
|
||||
ST,
|
||||
PiWS,
|
||||
END
|
||||
};
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
Reference in New Issue
Block a user