Ok lets start again. Clearly my attempt at explaining myself and what issues I am having as a vague "Remember that dude with the hair...", so if you dont mind I would like to try again. Here goes...
[i]What I want to accomplish is have a website, in this case a Nodejs app loaded onto a cloud server like nodejitsu, then connecting the arduino to it with the items below and then being able to send commands from the website to the arduino and back again, but I can not even get the arduino to connect with the server...[/i]
I have the following components:
Arduino UNO R3 http://upload.wikimedia.org/wikipedia/commons/3/38/Arduino_Uno_-_R3.jpg
roving networks rn-xv Module https://static.hackaday.io/images/5595561403175750003.jpg
Wirles Proto Shield http://arduino.cc/en/uploads/Main/Arduino_WirelessProtoShield_Front_450px.jpg
I am using WiFlyHQ GitHub - harlequin-tech/WiFlyHQ: WiFly RN-XV Arduino Library to set-up a connection to my web server.
The following sketch is loaded onto my arduino: WiFlyHQ/httpclient.ino at master · harlequin-tech/WiFlyHQ · GitHub
#include <WiFlyHQ.h>
#include <SoftwareSerial.h>
SoftwareSerial wifiSerial(8,9);
//#include <AltSoftSerial.h>
//AltSoftSerial wifiSerial(8,9);
WiFly wifly;
/* Change these to match your WiFi network */
const char mySSID[] = "myssid";
const char myPassword[] = "my-wpa-password";
//const char site[] = "arduino.cc";
//const char site[] = "www.google.co.nz";
const char site[] = "hunt.net.nz";
void terminal();
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();
}
/* Join wifi network if not already associated */
if (!wifly.isAssociated()) {
/* Setup the WiFly to connect to a wifi network */
Serial.println("Joining network");
wifly.setSSID(mySSID);
wifly.setPassphrase(myPassword);
wifly.enableDHCP();
if (wifly.join()) {
Serial.println("Joined wifi network");
} else {
Serial.println("Failed to join wifi network");
terminal();
}
} else {
Serial.println("Already joined network");
}
//terminal();
Serial.print("MAC: ");
Serial.println(wifly.getMAC(buf, sizeof(buf)));
Serial.print("IP: ");
Serial.println(wifly.getIP(buf, sizeof(buf)));
Serial.print("Netmask: ");
Serial.println(wifly.getNetmask(buf, sizeof(buf)));
Serial.print("Gateway: ");
Serial.println(wifly.getGateway(buf, sizeof(buf)));
wifly.setDeviceID("Wifly-WebClient");
Serial.print("DeviceID: ");
Serial.println(wifly.getDeviceID(buf, sizeof(buf)));
if (wifly.isConnected()) {
Serial.println("Old connection active. Closing");
wifly.close();
}
if (wifly.open(site, 80)) {
Serial.print("Connected to ");
Serial.println(site);
/* Send the request */
wifly.println("GET / HTTP/1.0");
wifly.println();
} else {
Serial.println("Failed to connect");
}
}
void loop()
{
if (wifly.available() > 0) {
char ch = wifly.read();
Serial.write(ch);
if (ch == '\n') {
/* add a carriage return */
Serial.write('\r');
}
}
if (Serial.available() > 0) {
wifly.write(Serial.read());
}
}
/* Connect the WiFly serial to the serial monitor. */
void terminal()
{
while (1) {
if (wifly.available() > 0) {
Serial.write(wifly.read());
}
if (Serial.available() > 0) {
wifly.write(Serial.read());
}
}
}
My Wifly Is programed as follows (its set to USB mode as micro gives me a sync error)
-
$$$ to enter command mode in the serial monitor
-
then I set the SSID - set wlan ssid myLanSSID
-
then i set t the phrase - set wlan phrase xxxx-xxxxx
-
then I save and reboot..
This then connects the Wifly to my network: I receive the associated and READY messages, I also succesffuly went through these steps: http://www.tinkerfailure.com/2012/02/setting-up-the-wifly-rn-xv/
So technically with everything set up it should work, however it does not...
When I load my sketch and run it I get the following output in the Serial Monitor:
Starting
Free memory: 1337
setPrompt failed
Failed to enter command mode
Failed to start wifly
Terminal ready
I have no idea where it gets these from... and why I would get these messages.
setPrompt failed
Failed to enter command mode
is there a setup that I am missing. a little help would be nice 
THanx for the responses so far... hopefully the above is more in detail.