mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
update firmware automatically - #1920
This commit is contained in:
@@ -13,7 +13,9 @@
|
||||
#include <array>
|
||||
|
||||
#define UPLOAD_FILE_PATH "/rest/uploadFile"
|
||||
#define TEMP_FILENAME_PATH "/tmp_upload"
|
||||
#define UPLOAD_URL_PATH "/rest/uploadURL"
|
||||
|
||||
#define TEMP_FILENAME_PATH "/tmp_upload" // for uploaded json files
|
||||
|
||||
class UploadFileService {
|
||||
public:
|
||||
@@ -27,6 +29,8 @@ class UploadFileService {
|
||||
void handleUpload(AsyncWebServerRequest * request, const String & filename, size_t index, uint8_t * data, size_t len, bool final);
|
||||
void uploadComplete(AsyncWebServerRequest * request);
|
||||
void handleError(AsyncWebServerRequest * request, int code);
|
||||
void uploadURL(AsyncWebServerRequest * request, JsonVariant json);
|
||||
|
||||
void handleEarlyDisconnect();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user