![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
tt
Dependencies: C027_Support mbed
Fork of C027_SupportTest by
Diff: main.cpp
- Revision:
- 17:c293780a40ac
- Parent:
- 16:43f6de7bc38b
- Child:
- 18:50e6c4ed8a4a
--- a/main.cpp Wed May 14 05:56:27 2014 +0000 +++ b/main.cpp Wed May 14 12:24:04 2014 +0000 @@ -71,7 +71,11 @@ int main(void) { int ret; +#ifdef TARGET_LPC1768 char buf[2048] = ""; +#else + char buf[512] = ""; +#endif // only trace if the serial is different from our modem port if (DOTRACE) { @@ -167,32 +171,32 @@ const char* host = "echo.u-blox.com"; MDMParser::IP ip = mdm.gethostbyname(host); char data[] = "\r\nxxx Socket Hello World\r\n" -#if 1 - "00 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" - "01 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" - "02 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" - "03 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" - "04 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" +#ifdef TARGET_LPC1768 + "00 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" + "01 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" + "02 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" + "03 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" + "04 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" + + "05 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" + "06 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" + "07 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" + "08 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" + "09 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" - "05 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" - "06 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" - "07 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" - "08 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" - "09 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" - - "10 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" - "11 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" - "12 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" - "13 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" - "14 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" - - "15 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" - "16 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" - "17 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" - "18 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" - "19 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" + "10 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" + "11 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" + "12 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" + "13 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" + "14 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" + + "15 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" + "16 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" + "17 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" + "18 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" + "19 0123456789 0123456789 0123456789 0123456789 0123456789 \r\n" #endif - "End\r\n"; + "End\r\n"; TRACE("Testing TCP sockets with ECHO server\r\n"); socket = mdm.socketSocket(MDMParser::IPPROTO_TCP);