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.
Revision 16:5df36a9f0f60, committed 2018-10-16
- Comitter:
- ccli8
- Date:
- Tue Oct 16 15:00:03 2018 +0800
- Parent:
- 15:17919a660e45
- Child:
- 17:e5e8673e25ae
- Commit message:
- Remove dead code
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Oct 16 14:17:49 2018 +0800
+++ b/main.cpp Tue Oct 16 15:00:03 2018 +0800
@@ -1,13 +1,6 @@
-//#if !FEATURE_IPV4
-// #error [NOT_SUPPORTED] IPV4 not supported for this target
-//#endif
-
-#include <algorithm>
#include "mbed.h"
#include "EthernetInterface.h"
#include "TCPSocket.h"
-#include "greentea-client/test_env.h"
-#include "unity/unity.h"
//#define LOCAL_LAN
@@ -51,8 +44,7 @@
mbed_stats_heap_t heap_stats;
#endif
- printf(" Start TCP test \r\n");
-// GREENTEA_SETUP(20, "default_auto");
+ printf("Start TCP test \r\n");
bool result = true;
@@ -72,7 +64,7 @@
strcpy(buffer, "GET http://");
strcat(buffer, HTTP_SERVER_NAME);
strcat(buffer, HTTP_SERVER_FILE_PATH);
- strcat(buffer, " HTTP/1.0\n\n");
+ strcat(buffer, "HTTP/1.0\n\n");
// Send GET command
sock.send(buffer, strlen(buffer));
@@ -97,7 +89,6 @@
sock.close();
eth.disconnect();
-// GREENTEA_TESTSUITE_RESULT(result);
#if MBED_HEAP_STATS_ENABLED
mbed_stats_heap_get(&heap_stats);