Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: oldheating gps motorhome heating
Diff: base/log/web-log-html.c
- Revision:
- 110:8ab752842d25
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/base/log/web-log-html.c Tue Apr 30 12:45:08 2019 +0000 @@ -0,0 +1,22 @@ +#include "http.h" +#include "web-nav-base.h" +#include "web-add.h" +#include "log.h" + +void WebLogHtml() +{ + HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL); + WebAddHeader("Log", "settings.css", NULL); + WebAddNav(LOG_PAGE); + WebAddH1("Log"); + + WebAddInputButton("Existing content", "Clear", "/log", "clearlog" ); + if (LogUart) WebAddInputButton("Output to uart is on", "Turn off", "/log", "chg-log-uart"); + else WebAddInputButton("Output to uart is off", "Turn on", "/log", "chg-log-uart"); + + HttpAddText("<code>"); + HttpAddStream(LogEnumerateStart, LogEnumerate); + HttpAddText("</code>"); + + WebAddEnd(); +}