123

Dependencies:   WIZnetInterface mbed-src mbed mbed

Fork of TCP_LED_Control-WIZwiki-W7500 by WIZnet

Files at this revision

API Documentation at this revision

Comitter:
kzl108
Date:
Mon Jul 27 01:31:48 2015 +0000
Parent:
12:aee11a1d7f14
Child:
14:60333a427d2c
Commit message:
LED can be controlled by remote TCP client

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Jul 20 07:54:18 2015 +0000
+++ b/main.cpp	Mon Jul 27 01:31:48 2015 +0000
@@ -39,16 +39,7 @@
             // print received message to terminal
             buffer[n] = '\0';
             printf("Received message from Client :'%s'\r\n",buffer);
-
-          
-            // LED control if received message matches pre-defined command
-            /*
-            if ((buffer[0] == 'L') & (buffer[1] == '\0'))
-              myled = 0; // LED ON in WIZwiki-W7500
-            else
-              myled = 1;
-            */
-            
+    
             // LED control if received message matches pre-defined command
             char command_buf[256] = {'L', 'E', 'D', '_', 'O', 'N', '\0'};
 
@@ -66,12 +57,6 @@
               myled = 1;
               printf("LED is turned off!\r\n");
             }
-
-
-            // LED blink one time                        
-            //myled = 0; // LED ON in WIZwiki-W7500
-            //wait(1.0);
-            //myled = 1; // LED OFF in WIZwiki-W7500
             
             // reverse the message
             char temp;