This is a simple lwip HTTPClient example it uses the HTTPClient class to update your twitter status.

Dependencies:   mbed lwip

Files at this revision

API Documentation at this revision

Comitter:
rolf
Date:
Wed Dec 02 12:22:40 2009 +0000
Parent:
0:5396f623478b
Commit message:

Changed in this revision

main.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/main.cpp	Fri Sep 04 10:57:58 2009 +0000
+++ b/main.cpp	Wed Dec 02 12:22:40 2009 +0000
@@ -1,14 +1,13 @@
 #include "mbed.h"
 #include "HTTPClient.h"
 
-using namespace std;
-
 DigitalOut led(LED1);
 HTTPClient http;
 
-const char user[] = "<username>";
-const char pass[] = "<password>";
-const char msg[] = "status=<message>";
+#error Insert username and password
+const char user[] = "<your twitter username>";
+const char pass[] = "<your twitter password>";
+const char msg[] = "status=Hello World from an mbed";
 const char url[]  = "http://twitter.com/statuses/update.xml";
 
 int main(void) {
--- a/mbed.bld	Fri Sep 04 10:57:58 2009 +0000
+++ b/mbed.bld	Wed Dec 02 12:22:40 2009 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/f63353af7be8
+http://mbed.org/users/mbed_official/code/mbed/builds/49a220cc26e0