SimpleSocket 1.0 examples

Dependencies:   EthernetNetIf SimpleSocket 1.0 mbed

Revision:
34:a108bcc26b69
Parent:
33:39d9cdf99de8
--- a/supertweet.cpp	Wed Nov 02 12:16:51 2011 +0000
+++ b/supertweet.cpp	Fri Nov 04 06:04:36 2011 +0000
@@ -1,7 +1,6 @@
 #include "EthernetNetIf.h"
 #include "SimpleSocket.h"
 #include <ctype.h>
-#include <string.h>
 
 void encodeBase64(char *ibuf, char *obuf);
 int encodeFormUrl(char *s, char *t);
@@ -46,14 +45,14 @@
     while (client) {
         if (client.available()) {
             while (client.available()) {
-                char response[64] = {};
+                char response[128] = {};
                 client.read(response, sizeof(response) - 1);
-                printf("%s\n", response);
+                printf("%s", response);
             }
             client.close();
         }
     }
-    printf("done\n");
+    printf("\ndone\n");
 }
 
 int encodeFormUrl(char *s, char *t) {