File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -23,28 +23,32 @@ It will provide a simple webpage for updating the firmware or filesystem of `ESP
2323
2424### Setup
25251 . Include the library after ` ESPAsyncWebServer.h `
26- ```
26+ ``` C++
2727#include < ESPAsyncWebServer.h>
2828#include < ESPAsyncHTTPUpdateServer.h>
2929```
30302 . Create an object from ` ESPAsyncHTTPUpdateServer `
31- ```
31+ ``` C++
3232ESPAsyncHTTPUpdateServer _updateServer;
3333AsyncWebServer _server (80);
3434```
35353. Setup the update server before starting the webServer
36- ```
36+ ``` C++
3737_updateServer.setup(&_server);
3838_server.begin();
3939```
4040#### Custom Route
41- ```
41+ ``` C++
4242_updateServer.setup(&_server, " /customroute" );
4343```
4444#### Credentials
45- ```
45+ ``` C++
4646_updateServer.setup(&_server, " username" , " password" );
4747```
48+ or
49+ ``` C++
50+ _updateServer.setup(&_server, " /customroute" , " username" , " password" );
51+ ```
4852
4953> [ !IMPORTANT]
5054> ### Selecting FileSystem
You can’t perform that action at this time.
0 commit comments