2022-02-02 21:17:50 +01:00
|
|
|
#pragma once
|
|
|
|
|
#include "Global.h"
|
2022-02-05 02:13:56 +01:00
|
|
|
#include "Utils/WiFiUtils.h"
|
2022-02-14 00:12:58 +01:00
|
|
|
#include "DeviceList.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-05 02:13:56 +01:00
|
|
|
void sendFileToWs(const char* filename, uint8_t num, size_t frameSize);
|
2022-02-02 21:40:45 +01:00
|
|
|
void publishStatusWs(const String& topic, const String& data);
|
2022-02-08 16:47:17 +01:00
|
|
|
void periodicWsSend();
|
2022-02-05 02:13:56 +01:00
|
|
|
void sendStringToWs(const String& msg, uint8_t num, String name);
|
|
|
|
|
|
2022-02-02 21:17:50 +01:00
|
|
|
// void sendMark(const char* filename, const char* mark, uint8_t num);
|
|
|
|
|
// void sendFileToWs3(const String& filename, uint8_t num);
|
|
|
|
|
// void sendFileToWs4(const String& filename, uint8_t num);
|