A version of LWIP, provided for backwards compatibility.

Dependents:   AA_DemoBoard DemoBoard HelloServerDemo DemoBoard_RangeIndicator ... more

examples/HTTPClient/main.cpp

Committer:
root@mbed.org
Date:
2012-05-08
Revision:
0:5e1631496985

File content as of revision 0:5e1631496985:

#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);
  
    while(1) {
        led = !led;
        wait(0.2);
    }
}