A version of LWIP, provided for backwards compatibility.
Dependents: AA_DemoBoard DemoBoard HelloServerDemo DemoBoard_RangeIndicator ... more
main.cpp
00001 #include "mbed.h" 00002 #include "HTTPClient.h" 00003 00004 using namespace std; 00005 00006 DigitalOut led(LED1); 00007 HTTPClient http; 00008 00009 const char user[] = "<username>"; 00010 const char pass[] = "<password>"; 00011 const char msg[] = "status=<message>"; 00012 const char url[] = "http://twitter.com/statuses/update.xml"; 00013 00014 int main(void) { 00015 http.auth(user, pass); 00016 http.post(url, msg); 00017 00018 while(1) { 00019 led = !led; 00020 wait(0.2); 00021 } 00022 } 00023
Generated on Tue Jul 12 2022 16:06:14 by 1.7.2