tweet_test
« Back to documentation index
Show/hide line numbers
main.cpp Source File
main.cpp
00001 #include "mbed.h"
00002 #include "HTTPClient.h"
00003 using namespace std;
00004
00005 DigitalOut led(LED1);
00006
00007 HTTPClient http;
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 const char msg[] = "status=mbed test";
00018
00019 int main(void) {
00020 http.auth("username", "password");
00021 http.post("http://twitter.com/statuses/update.xml", msg);
00022
00023 while(1) {
00024 led = !led;
00025 wait(0.2);
00026 }
00027 }