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: WIZnetInterface mbed-src mbed mbed
Fork of TCP_LED_Control-WIZwiki-W7500 by
Diff: main.cpp
- Revision:
- 13:31f4ecf83cca
- Parent:
- 12:aee11a1d7f14
diff -r aee11a1d7f14 -r 31f4ecf83cca main.cpp
--- 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;
