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
log/http-log-html.c
- Committer:
- andrewboyson
- Date:
- 2019-04-08
- Revision:
- 87:c51478679090
- Parent:
- 83:0d956edd55b7
File content as of revision 87:c51478679090:
#include "http.h"
#include "page.h"
#include "log.h"
#include "http-server.h"
void HttpLogHtml()
{
HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL);
PageAddHeader(PageSite, "Log", "settings.css", NULL);
PageAddNav(LOG_PAGE);
PageAddH1(PageSite, "Log");
PageAddInputButton("Existing content", "Clear", "/log", "clearlog" );
if (LogUart) PageAddInputButton("Output to uart is on", "Turn off", "/log", "chg-log-uart");
else PageAddInputButton("Output to uart is off", "Turn on", "/log", "chg-log-uart");
HttpAddText("<code>");
HttpAddStream(LogEnumerateStart, LogEnumerate);
HttpAddText("</code>");
PageAddEnd();
}