We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1d0380 commit acb0eb3Copy full SHA for acb0eb3
src/ESPAsyncHTTPUpdateServer.h
@@ -3,9 +3,27 @@
3
4
#include <ESPAsyncWebServer.h>
5
6
+enum UpdateType
7
+{
8
+ FIRMWARE,
9
+ FILE_SYSTEM
10
+};
11
+
12
+enum UpdateCode
13
14
+ UPDATE_OK,
15
+ UPDATE_ABORT,
16
+ UPDATE_ERROR,
17
18
19
+typedef void (*ESPAsyncHTTPUpdateServer_event)(const UpdateType updateType, int &resultCode);
20
21
class ESPAsyncHTTPUpdateServer
22
{
23
public:
24
+ ESPAsyncHTTPUpdateServer_event onUpdateBegin;
25
+ ESPAsyncHTTPUpdateServer_event onUpdateEnd;
26
27
ESPAsyncHTTPUpdateServer();
28
29
void setup(AsyncWebServer *server)
0 commit comments