2022-02-02 21:17:50 +01:00
|
|
|
#pragma once
|
|
|
|
|
#include "Global.h"
|
2022-02-15 11:37:31 +01:00
|
|
|
#include "utils/WiFiUtils.h"
|
2022-02-14 00:12:58 +01:00
|
|
|
#include "DeviceList.h"
|
2022-02-14 22:20:35 +03:00
|
|
|
#include "ESPConfiguration.h"
|
2022-02-18 20:06:25 +01:00
|
|
|
#include "UpgradeFirm.h"
|
2022-02-02 21:17:50 +01:00
|
|
|
|
|
|
|
|
#ifdef STANDARD_WEB_SOCKETS
|
|
|
|
|
extern void standWebSocketsInit();
|
|
|
|
|
extern void webSocketEvent(uint8_t num, WStype_t type, uint8_t* payload, size_t length);
|
|
|
|
|
#ifdef ESP32
|
|
|
|
|
extern void hexdump(const void* mem, uint32_t len, uint8_t cols);
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
|
2022-02-02 21:40:45 +01:00
|
|
|
void publishStatusWs(const String& topic, const String& data);
|
2022-09-23 02:24:50 +02:00
|
|
|
void publishChartWs(int num, String& path);
|
2022-02-08 16:47:17 +01:00
|
|
|
void periodicWsSend();
|
2022-02-05 02:13:56 +01:00
|
|
|
|
2022-10-11 22:33:42 +02:00
|
|
|
void sendFileToWsByFrames(const String& filename, const String& header, const String& json, int client_id, size_t frameSize);
|
2022-10-10 00:16:58 +02:00
|
|
|
void sendStringToWs(const String& header, String& payload, int client_id);
|