Rolf Meyer
/
Twitter
This is a simple lwip HTTPClient example it uses the HTTPClient class to update your twitter status.
main.cpp
- Committer:
- rolf
- Date:
- 2009-09-04
- Revision:
- 0:5396f623478b
- Child:
- 1:803d5168d739
File content as of revision 0:5396f623478b:
#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>"; const char url[] = "http://twitter.com/statuses/update.xml"; int main(void) { http.auth(user, pass); http.post(url, msg, stdout); while(1) { led = !led; wait(0.2); } }