Lab2_web / Mbed 2 deprecated webserverBlinky

Dependencies:   mbed

Fork of webserverBlinky by RealTimeCompLab2

Revision:
112:30172f36bd33
Parent:
111:6a3b77c065c0
Child:
113:d9666fe4d0ed
--- a/main.cpp	Fri Aug 04 20:59:40 2017 +0000
+++ b/main.cpp	Fri Aug 04 21:26:19 2017 +0000
@@ -37,7 +37,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.
 // Note - the LPC11U24 does NOT have a second serial port
-#define SERIAL_PORT_MONITOR_NO /* change to SERIAL_PORT_MONITOR_YES for debug messages */
+#define SERIAL_PORT_MONITOR_YES /* change to SERIAL_PORT_MONITOR_YES for debug messages */
 
 // here we define the OPTIONAL, second debug serial port for the various target boards
 // insert your target board's port here if it's not in yet - if it works, please send it to me - thanks!!!
@@ -59,7 +59,7 @@
 #endif
 
 // verbosity flags used in debug printouts - change to 1 to see increasingly more detailed debug info.
-#define v0 0
+#define v0 1
 #define v1 0
 #define v2 0
 
@@ -967,7 +967,6 @@
         char * found1 = strstr( (char *)ppp.rx.buf, "CLIENT" );
         if (found1 != NULL) {
             // respond with Windows Dialup networking expected "Direct Connection Between Two Computers" response string
-            led1Toggle();
             if (v0) debug("Found connect string \"CLIENT\", sent \"CLIENTSERVER\"\n");
             pc.puts("CLIENTSERVER");
             ppp.online=1; // we are connected, so we can stop looking for the connect string
@@ -989,6 +988,7 @@
     xx.baud(115200); // second serial port for debug messages
     xx.puts("\x1b[2J\x1b[HReady\n"); // VT100 code for clear screen & home
 #endif
+while(1){};
     pppInitStruct(); // initialize all the PPP properties
     while(1) {
         scanForConnectString(); // respond to connect command from windows dial up networking