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.
Dependencies: mbed
Fork of webserverBlinky by
Revision 94:8ee3eec2a2bb, committed 2017-07-24
- Comitter:
- nixnax
- Date:
- Mon Jul 24 23:02:53 2017 +0000
- Parent:
- 93:9675adc36882
- Child:
- 95:40af49390daf
- Commit message:
- Debug serial port off; Display frame count for /x
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Jul 24 22:21:41 2017 +0000 +++ b/main.cpp Mon Jul 24 23:02:53 2017 +0000 @@ -36,7 +36,7 @@ // The #define below enables/disables a second (OPTIONAL) serial port that prints out interesting diagnostic messages. // Change to SERIAL_PORT_MONITOR_YES to enable diagnostics messages. You need to wire a second serial port to your mbed hardware to monitor this. -#define SERIAL_PORT_MONITOR_YES /* change to SERIAL_PORT_MONITOR_YES for debug messages */ +#define SERIAL_PORT_MONITOR_NO /* change to SERIAL_PORT_MONITOR_YES for debug messages */ #ifndef SERIAL_PORT_MONITOR_NO @@ -577,9 +577,9 @@ // change the above to W3C_COMPLIANT_RESPONSE_YES if you want a W3C.org compliant HTTP response #ifdef W3C_COMPLIANT_RESPONSE_YES n=n+sprintf(n+dataStart,"<!DOCTYPE html><title>mbed-ppp-blinky</title>"); // html title (W3C.org required element) - n=n+sprintf(n+dataStart,"<body>%d</body>",ppp.buflevel); // ppp.httpFrameCount); // body = the http frame count + n=n+sprintf(n+dataStart,"<body>%d</body>",ppp.httpFrameCount); // body = the http frame count #else - n=n+sprintf(n+dataStart,"%d",ppp.httpFrameCount); // not valid html but fast, most browsers and curl are ok with it + n=n+sprintf(n+dataStart,"%d",ppp.httpFrameCount);//ppp.httpFrameCount); // not valid html but fast, most browsers and curl are ok with it #endif } else {