Go Down

Topic: WiFlyHQ cant connect with any examples (Read 387 times) previous topic - next topic

stevemilw

Hello

I cant connect to the wireless network using the UDP example.

I get the following error;

Quote
setPrompt failed
Failed to enter command mode
Failed to start wifly
Terminal ready


from the code;

Code: [Select]
#include <SoftwareSerial.h>
SoftwareSerial wifiSerial(8,9);

//#include <AltSoftSerial.h>
//AltSoftSerial wifiSerial(8,9);

#include <WiFlyHQ.h>

/* Change these to match your WiFi network */
const char mySSID[] = "BTHub3-HKP4";
const char myPassword[] = "9d7cdbc6ce";

void terminal();

WiFly wifly;

void setup()
{
    char buf[32];

    Serial.begin(115200);
    Serial.println("Starting");
    Serial.print("Free memory: ");
    Serial.println(wifly.getFreeMemory(),DEC);

    wifiSerial.begin(9600);

    if (!wifly.begin(&wifiSerial, &Serial)) {
        Serial.println("Failed to start wifly");
terminal();
    }

I have pin bent pins 0,1 so they dont connect to the arduino board, and have put wires to pins 8,9.

changing the code to
Code: [Select]
if (!wifly.begin(&wifiSerial, NULL)) { as discussed on other forums, just gives me the error;

Quote
Failed to start wifly
Terminal ready


But this error is irrespective of whether i have the wires routing to 8,9 from 0,1 and irrespective of my SoftwareSerial wifiSerial(8,9); pin values.

Any ideas?

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy