Hi i posted this in other topic, but then i tought maybe if i posted here it would be more appropriate, so here it goes.
Im using mega 2560 with the RN-171, the very same in the picture posted in by wsanders.
I get messy characters on console and i dont think im connecting because both D1 and D5 are still blinking.
Im using the softwareserial library and the WiflyHQ-master i saw here, still i can’t understand why it doesn’t work.
here is my code:
#include “Wifly.h”
#include <SoftwareSerial.h>
WiflyClass Wifly(10,11);
void setup()
{
Serial.begin(9600);
Wifly.init();
Serial.println(“init”);
Wifly.setConfig(“SSID”,“phrase”);
Serial.println(“SetConfig”);
Wifly.join(“phrase”);
Serial.println(“Join”);
Wifly.checkAssociated();
Serial.println(“checkAssociated”);
while(!Wifly.connect(“192.168.1.1”,“8080”))Serial.println(“trying”);
Wifly.writeToSocket(“Connected!”);
}
void loop()
{
if(Wifly.canReadFromSocket())
{
Wifly.readFromSocket();
}
if(Serial.available())
{
Wifly.print((char)Serial.read());
}
}
Any ideas are welcome.