2021-12-23 22:42:19 +01:00
|
|
|
#pragma once
|
|
|
|
|
#include "Global.h"
|
2021-12-24 22:49:06 +01:00
|
|
|
|
2021-12-23 22:42:19 +01:00
|
|
|
#ifdef STANDARD_WEB_SERVER
|
|
|
|
|
extern void standWebServerInit();
|
|
|
|
|
extern bool handleFileRead(String path);
|
|
|
|
|
extern String getContentType(String filename);
|
2021-12-23 22:56:45 +01:00
|
|
|
#ifdef REST_FILE_OPERATIONS
|
2021-12-23 22:42:19 +01:00
|
|
|
extern void handleFileUpload();
|
|
|
|
|
extern void handleFileDelete();
|
|
|
|
|
extern void handleFileCreate();
|
|
|
|
|
extern void handleFileList();
|
|
|
|
|
#endif
|
2021-12-23 23:47:13 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef STANDARD_WEB_SOCKETS
|
|
|
|
|
extern void standWebSocketsInit();
|
|
|
|
|
extern void webSocketEvent(uint8_t num, WStype_t type, uint8_t* payload, size_t length);
|
2021-12-24 01:26:50 +01:00
|
|
|
#ifdef ESP32
|
|
|
|
|
extern void hexdump(const void* mem, uint32_t len, uint8_t cols);
|
|
|
|
|
#endif
|
2022-01-21 17:34:11 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
void sendFileToWs3(const String& filename, uint8_t num);
|
2022-01-24 00:57:22 +01:00
|
|
|
void sendFileToWs4(const String& filename, uint8_t num);
|
2022-01-25 00:14:23 +01:00
|
|
|
void sendFileToWs5(const char* filename, uint8_t num);
|
2022-01-25 01:41:14 +01:00
|
|
|
void sendMark(const char* filename, const char* mark, uint8_t num);
|