sho hashimoto
/
tweet_test
tweet test
main.cpp
- Committer:
- shokai
- Date:
- 2010-04-21
- Revision:
- 0:660f9590d2db
File content as of revision 0:660f9590d2db:
#include "mbed.h" #include "HTTPClient.h" using namespace std; DigitalOut led(LED1); HTTPClient http; // use DHCP /* // use static IP HTTPClient http("mbed", // hostname. IPv4(192,168,1,39), // IPv4 address IPv4(255,255,255,0), // netmask IPv4(192,168,1,1), // default gateway IPv4(192,168,1,1)); // dns server /**/ const char msg[] = "status=mbed test"; int main(void) { http.auth("username", "password"); http.post("http://twitter.com/statuses/update.xml", msg); while(1) { led = !led; wait(0.2); } }