Skip to content

Commit 104c070

Browse files
authored
Merge pull request #23 from wuhgit/master
Customizing the OTA page
2 parents 709a93f + a30b5e2 commit 104c070

File tree

6 files changed

+72
-16
lines changed

6 files changed

+72
-16
lines changed

README.md

Lines changed: 33 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,19 +80,44 @@ or
8080
_updateServer.setup(&_server, "/customroute", "username", "password");
8181
```
8282

83-
### Styling
84-
- Stylized
85-
86-
<img width="500" src="image-2.png" alt="Stylized OTA Page"/>
87-
88-
- Minimal
89-
90-
<img width="500" src="image-3.png" alt="Minimal OTA Page"/>
83+
### Styling and Customizing OTA Page
84+
85+
<table>
86+
<tr>
87+
<td>OTA Mode</td>
88+
<td>Stylized</td>
89+
<td>Minimal(default)</td>
90+
</tr>
91+
<tr>
92+
<td>Default</td>
93+
<td><img width="450" src="image-2.png" alt="Stylized OTA Page"/></td>
94+
<td><img width="450" src="image-3.png" alt="Minimal OTA Page"/></td>
95+
</tr>
96+
<tr>
97+
<td>Firmware Only</td>
98+
<td><img width="450" src="image-4_s_firmware.png" alt="Stylized OTA Firmware Only Page"/></td>
99+
<td><img width="450" src="image-4_n_firmware.png" alt="Minimal OTA Firmware Only Page"/></td>
100+
</tr>
101+
<tr>
102+
<td>Filesystem Only</td>
103+
<td><img width="450" src="image-4_s_filesystem.png" alt="Stylized OTA Filesystem OnlyPage"/></td>
104+
<td><img width="450" src="image-4_n_filesystem.png" alt="Minimal OTA Filesystem Only Page"/></td>
105+
</tr>
106+
</table>
91107

92108
> [!IMPORTANT]
93109
> By default styling is disabled to save ~350 bytes of flash memory.
94110
>
95111
> You can enable the styling by adding the `-DESPASYNCHTTPUPDATESERVER_PRETTY` Build Flag to your environment.
112+
>
113+
> Adding the `-DESPASYNCHTTPUPDATESERVER_MODE` Build Flag to choose different update mode. this flag has three values:
114+
>
115+
> `-DESPASYNCHTTPUPDATESERVER_MODE=0` firmware and filesystem, which is the default.
116+
>
117+
> `-DESPASYNCHTTPUPDATESERVER_MODE=1` update firmware only.
118+
>
119+
> `-DESPASYNCHTTPUPDATESERVER_MODE=2` update filesystem only.
120+
96121

97122
### Selecting FileSystem
98123
> [!IMPORTANT]

image-4_n_filesystem.png

5.27 KB
Loading

image-4_n_firmware.png

4.86 KB
Loading

image-4_s_filesystem.png

33.4 KB
Loading

image-4_s_firmware.png

32.6 KB
Loading

0 commit comments

Comments
 (0)