Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
11 years, 12 months ago.
Rn-Xv led is blinking and dont communicate with internet
Hello i am trying to connect my rn-xv to internet and I used the next program
- include "mbed.h"
- include "WiflyInterface.h"
- include "HTTPClient.h"
Serial pc(USBTX, USBRX);
WiflyInterface wifly(p13,p14,p22,p21, "","",NONE);
HTTPClient http; char str[512];
int main() {
wifly.init(); use DHCP
while (!wifly.connect()); join the network
printf("IP Address is %s\n\r", wifly.getIPAddress());
printf("Trying to fetch page...\n");
int ret = http.get("http://mbed.org/media/uploads/donatien/hello.txt", str, 128);
if (!ret) {
printf("Page fetched successfully - read %d characters\n", strlen(str));
printf("Result: %s\n", str);
} else {
printf("Error - ret = %d - HTTP return code = %d\n", ret, http.getHTTPResponseCode());
} }
So when i run that program my green led of rn-xv blinking slowly and dont stay solid, the MAC of mbed is detected in my router but in terminal appears "Error - ret = 8 - HTTP return code = 0" , I am not where i am wrong, please help me Sorry for my english