Add SPIFFSEditor to the library

This commit is contained in:
me-no-dev
2016-09-23 15:11:50 +03:00
parent d935b1d740
commit a39051a2d5
3 changed files with 454 additions and 434 deletions
+18
View File
@@ -0,0 +1,18 @@
#ifndef SPIFFSEditor_H_
#define SPIFFSEditor_H_
#include <ESPAsyncWebServer.h>
class SPIFFSEditor: public AsyncWebHandler {
private:
String _username;
String _password;
bool _authenticated;
uint32_t _startTime;
public:
SPIFFSEditor(String username=String(), String password=String());
bool canHandle(AsyncWebServerRequest *request);
void handleRequest(AsyncWebServerRequest *request);
void handleUpload(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final);
};
#endif