Skeleton for the web-server page

pull/193/head
Karai Csaba 9 years ago committed by Thorsten von Eicken
parent 31fa743d14
commit aa35923863
  1. 1
      esp-link/cgi.c
  2. 2
      esp-link/cgiservices.c
  3. 6
      html/home.html
  4. 12
      html/web-server.html

@ -215,6 +215,7 @@ int ICACHE_FLASH_ATTR cgiMenu(HttpdConnData *connData) {
#endif #endif
"\"Debug log\", \"/log.html\"," "\"Debug log\", \"/log.html\","
"\"Upgrade Firmware\", \"/flash.html\"" "\"Upgrade Firmware\", \"/flash.html\""
"\"Web Server\", \"/web-server.html\""
" ], " " ], "
"\"version\": \"%s\", " "\"version\": \"%s\", "
"\"name\": \"%s\"" "\"name\": \"%s\""

@ -68,6 +68,7 @@ int ICACHE_FLASH_ATTR cgiSystemInfo(HttpdConnData *connData) {
"\"name\": \"%s\", " "\"name\": \"%s\", "
"\"reset cause\": \"%d=%s\", " "\"reset cause\": \"%d=%s\", "
"\"size\": \"%s\", " "\"size\": \"%s\", "
"\"upload-size\": \"%d\", "
"\"id\": \"0x%02X 0x%04X\", " "\"id\": \"0x%02X 0x%04X\", "
"\"partition\": \"%s\", " "\"partition\": \"%s\", "
"\"slip\": \"%s\", " "\"slip\": \"%s\", "
@ -79,6 +80,7 @@ int ICACHE_FLASH_ATTR cgiSystemInfo(HttpdConnData *connData) {
rst_info->reason, rst_info->reason,
rst_codes[rst_info->reason], rst_codes[rst_info->reason],
flash_maps[system_get_flash_size_map()], flash_maps[system_get_flash_size_map()],
getUserPageSectionEnd()-getUserPageSectionStart(),
fid & 0xff, (fid & 0xff00) | ((fid >> 16) & 0xff), fid & 0xff, (fid & 0xff00) | ((fid >> 16) & 0xff),
part_id ? "user2.bin" : "user1.bin", part_id ? "user2.bin" : "user1.bin",
flashConfig.slip_enable ? "enabled" : "disabled", flashConfig.slip_enable ? "enabled" : "disabled",

@ -123,6 +123,12 @@
<div class="popup pop-left">Size configured into bootloader, must match chip size</div> <div class="popup pop-left">Size configured into bootloader, must match chip size</div>
</div> </div>
</td></tr> </td></tr>
<tr><td>Webpage size</td><td>
<div>
<span class="system-upload-size"></span>
<div class="popup pop-left">The maximal size of the custom web page a user can upload.</div>
</div>
</td></tr>
<tr><td>Current partition</td><td class="system-partition"></td></tr> <tr><td>Current partition</td><td class="system-partition"></td></tr>
<tr><td colspan=2 class="popup-target">Description:<br> <tr><td colspan=2 class="popup-target">Description:<br>
<div class="click-to-edit system-description"> <div class="click-to-edit system-description">

@ -0,0 +1,12 @@
<div id="main">
<div class="header">
<h1>Web Server</h1>
</div>
<div class="content">
<p>User defined web pages can be uploaded to esp-link. This is useful if esp-link acts as a web server while MCU provides
the measurement data.</p>
</div>
</div>
Loading…
Cancel
Save