Wifly arduino shield RSSI Vout (signal strength)

Actually the code wasn't attached. Here it is:

#include "WiFly.h"
#include "Credentials.h"

void setup()
{
Serial.begin(9600); //initialise serial comms

WiFly.begin(); //initialise WiFly comms

delay(1000);
Serial.write("$$$"); //initialise command mode
delay(1000);
}

void loop(){

delay(100);

Serial.write("show rssi"); //request RSSI value

while(SpiSerial.available()) {
Serial.print(SpiSerial.read(), BYTE);

/* if (WiFly.join(ssid, passphrase)) {
int ch = WiFly.read();
Serial.println(ch);

}
*/
if(Serial.available()) { // Outgoing data
SpiSerial.println(Serial.read(), BYTE);
}
}
}

WiFly_trying_to_read_rssi.pde (646 Bytes)