Lab2_web / Mbed 2 deprecated webserverBlinky

Dependencies:   mbed

Fork of webserverBlinky by RealTimeCompLab2

Files at this revision

API Documentation at this revision

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 {