2021-12-23 22:42:19 +01:00
|
|
|
#pragma once
|
|
|
|
|
#include "Global.h"
|
2021-12-24 00:44:11 +01:00
|
|
|
#include "Web.h"
|
2021-12-23 22:42:19 +01:00
|
|
|
#ifdef STANDARD_WEB_SERVER
|
|
|
|
|
extern void standWebServerInit();
|
|
|
|
|
|
|
|
|
|
extern void standWebServerFiles();
|
|
|
|
|
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
|
2021-12-23 22:42:19 +01:00
|
|
|
#endif
|