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

  1. include "mbed.h"
  2. include "WiflyInterface.h"
  3. 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

1 Answer

9 years, 6 months ago.

did you solve this in the end? i am getting the same error with my code