Pages: [1]   Go Down
Author Topic: WiFlyHQ cant connect with any examples  (Read 330 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 19
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
#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:
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?
Logged

Pages: [1]   Go Up
Jump to: