-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata.h
39 lines (37 loc) · 1.02 KB
/
data.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// TODO info as table for alignment
const char index_html[] PROGMEM = R"rawliteral(<!DOCTYPE html><html>
<body>
<h1>ESP32 Logger</h1>
<p>mDNS URL: <a href="http://%MDNS_HOSTNAME%.local">%MDNS_HOSTNAME%.local</a></p>
<p>Chip ID: %CHIP_ID%</p>
<p>Chip ID (hex): %CHIP_ID_HEX%</p>
<p>IP: %IP%</p>
<p>MAC: %MAC%</p>
<p>Firmware: %FIRMWARE_VERSION%</p>
<p>Uptime: %UPTIME%</p>
<form method="post">
<h2>Node Management</h2>
<div>
<label for="name">Name: </label>
<input name="name" value="%NAME%" />
</div>
<div>
<label for="location">Location: </label>
<input name="location" value="%LOCATION%" />
</div>
<button type="submit">Save</button>
</form>
<div>
<h2>Firmware</h2>
<a href="/update">Please use the ElegantOTA solution →</a>
</div>
</body>
</html>)rawliteral";
const char update_html[] PROGMEM = R"rawliteral(<!DOCTYPE html><html>
<head>
<meta http-equiv="refresh" content="5;url=/">
</head>
<body>
<h1>Config updated.</h1>
</body>
</html>)rawliteral";