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@87:c51478679090, 2019-04-08 (annotated)
- Committer:
- andrewboyson
- Date:
- Mon Apr 08 12:47:59 2019 +0000
- Revision:
- 87:c51478679090
- Parent:
- 83:0d956edd55b7
Moved log uart from net trace page to log page.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| andrewboyson | 14:c3c43c8faf0e | 1 | #include "http.h" |
| andrewboyson | 14:c3c43c8faf0e | 2 | #include "page.h" |
| andrewboyson | 29:4d649264d6b6 | 3 | #include "log.h" |
| andrewboyson | 29:4d649264d6b6 | 4 | #include "http-server.h" |
| andrewboyson | 14:c3c43c8faf0e | 5 | |
| andrewboyson | 14:c3c43c8faf0e | 6 | void HttpLogHtml() |
| andrewboyson | 14:c3c43c8faf0e | 7 | { |
| andrewboyson | 14:c3c43c8faf0e | 8 | HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL); |
| andrewboyson | 30:6a08abbe6301 | 9 | PageAddHeader(PageSite, "Log", "settings.css", NULL); |
| andrewboyson | 30:6a08abbe6301 | 10 | PageAddNav(LOG_PAGE); |
| andrewboyson | 30:6a08abbe6301 | 11 | PageAddH1(PageSite, "Log"); |
| andrewboyson | 14:c3c43c8faf0e | 12 | |
| andrewboyson | 87:c51478679090 | 13 | PageAddInputButton("Existing content", "Clear", "/log", "clearlog" ); |
| andrewboyson | 87:c51478679090 | 14 | if (LogUart) PageAddInputButton("Output to uart is on", "Turn off", "/log", "chg-log-uart"); |
| andrewboyson | 87:c51478679090 | 15 | else PageAddInputButton("Output to uart is off", "Turn on", "/log", "chg-log-uart"); |
| andrewboyson | 14:c3c43c8faf0e | 16 | |
| andrewboyson | 14:c3c43c8faf0e | 17 | HttpAddText("<code>"); |
| andrewboyson | 14:c3c43c8faf0e | 18 | HttpAddStream(LogEnumerateStart, LogEnumerate); |
| andrewboyson | 14:c3c43c8faf0e | 19 | HttpAddText("</code>"); |
| andrewboyson | 14:c3c43c8faf0e | 20 | |
| andrewboyson | 14:c3c43c8faf0e | 21 | PageAddEnd(); |
| andrewboyson | 14:c3c43c8faf0e | 22 | } |