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: http-log-html.c
- Revision:
- 14:c3c43c8faf0e
- Child:
- 29:4d649264d6b6
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/http-log-html.c Sat Dec 29 19:01:39 2018 +0000
@@ -0,0 +1,23 @@
+#include "http.h"
+#include "page.h"
+#include "nav.h"
+#include "log.h"
+#include "http-base.h"
+
+void HttpLogHtml()
+{
+ HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL);
+ PageAddHeader(NavSite, "Log", "settings.css", NULL);
+ NavAdd(LOG_PAGE);
+ PageAddH1(NavSite, "Log");
+
+ HttpAddText("<h2>");
+ PageAddCheckInput("/log", "Log", "clearlog", "clear");
+ HttpAddText("</h2>\r\n");
+
+ HttpAddText("<code>");
+ HttpAddStream(LogEnumerateStart, LogEnumerate);
+ HttpAddText("</code>");
+
+ PageAddEnd();
+}