Hey guys,
First thanks for the mbed! I've been away from programming for quite some time now (3 years) but always wanted to get back into it.
I have the mbed up and working, and have played with most of the onboard functions but am having trouble getting the http client working.
#include "mbed.h"
#include "HTTPClient.h"
using namespace std;
DigitalOut led(LED1);
HTTPClient http;
const char user[] = "gxs.inc@gmail.com";
const char pass[] = "***";
const char msg[] = "status=Hello World. Posted via my mbed microcontroller";
const char url[] = "http://twitter.com/statuses/update.xml";
int main(void) {
http.auth(user, pass);
//test code
http.post(url, msg);
while(1) {
led = !led;
wait(0.2);
}
}
where the test code comment is i had a printf function and it did print out to tera term which did print.
just wondering what could be going wrong
Hey guys,
First thanks for the mbed! I've been away from programming for quite some time now (3 years) but always wanted to get back into it.
I have the mbed up and working, and have played with most of the onboard functions but am having trouble getting the http client working.
where the test code comment is i had a printf function and it did print out to tera term which did print.just wondering what could be going wrong