Dependencies:   EthernetNetIf mbed

Files at this revision

API Documentation at this revision

Comitter:
donatien
Date:
Fri Jun 18 09:39:04 2010 +0000
Parent:
0:b97bbcd81179
Child:
2:96e986ce29e8
Commit message:

Changed in this revision

HTTPClientExample.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/HTTPClientExample.cpp	Fri Jun 11 16:43:30 2010 +0000
+++ b/HTTPClientExample.cpp	Fri Jun 18 09:39:04 2010 +0000
@@ -1,40 +1,38 @@
-#include "mbed.h"
-#include "EthernetNetIf.h"
-#include "HTTPClient.h"
-
-EthernetNetIf eth; 
-HTTPClient http;
-  
-int main() {
-
-  printf("Start\n");
-
-  printf("\r\nSetting up...\r\n");
-  EthernetErr ethErr = eth.setup();
-  if(ethErr)
-  {
-    printf("Error %d in setup.\n", ethErr);
-    return -1;
-  }
-  printf("\r\nSetup OK\r\n");
-  
-  HTTPText txt;
-  
-  HTTPResult r = http.get("http://mbed.org/media/uploads/donatien/hello.txt", &txt);
-  if(r==HTTP_OK)
-  {
-    printf("Result :\"%s\"\n", txt.gets()); 
-  }
-  else
-  {
-    printf("Error %d\n", r);
-  }
-  
-  while(1)
-  {
-  
-  }
-  
-  return 0;
-  
-}
+#include "mbed.h"
+#include "EthernetNetIf.h"
+#include "HTTPClient.h"
+
+EthernetNetIf eth; 
+HTTPClient http;
+  
+int main() {
+
+  printf("Setting up...\n");
+  EthernetErr ethErr = eth.setup();
+  if(ethErr)
+  {
+    printf("Error %d in setup.\n", ethErr);
+    return -1;
+  }
+  printf("Setup OK\n");
+  
+  HTTPText txt;
+  
+  HTTPResult r = http.get("http://mbed.org/media/uploads/donatien/hello.txt", &txt);
+  if(r==HTTP_OK)
+  {
+    printf("Result :\"%s\"\n", txt.gets()); 
+  }
+  else
+  {
+    printf("Error %d\n", r);
+  }
+  
+  while(1)
+  {
+  
+  }
+  
+  return 0;
+  
+}
--- a/mbed.bld	Fri Jun 11 16:43:30 2010 +0000
+++ b/mbed.bld	Fri Jun 18 09:39:04 2010 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/029aa53d7323
+http://mbed.org/users/mbed_official/code/mbed/builds/3944f1e2fa4f