mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 14:12:16 +03:00
21 lines
723 B
C
21 lines
723 B
C
#pragma once
|
|
#include "Global.h"
|
|
#include "utils/WiFiUtils.h"
|
|
#include "DeviceList.h"
|
|
#include "ESPConfiguration.h"
|
|
#include "UpgradeFirm.h"
|
|
|
|
#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
|
|
|
|
void publishStatusWs(const String& topic, const String& data);
|
|
void publishChartWs(int num, String& path);
|
|
void periodicWsSend();
|
|
|
|
void sendFileToWsByFrames(const String& filename, const String& header, const String& json, uint8_t client_id, size_t frameSize);
|
|
void sendStringToWs(const String& header, String& payload, int client_id); |