I have my wifly attached to the arduino uno and connected to a network using the following code:
#include <WiFly.h>
#include <Arduino.h>
#include <SoftwareSerial.h>
WiFly wifly(2,3);
void setup () {
Serial.begin(9600);
wifly.sendCommand("join test1\r","AOK");
wifly.sendCommand("set i d 2\r", "AOK");
}
void loop() {
while (wifly.available()) {
Serial.write(wifly.read());
}
while (Serial.available()) {
wifly.write(Serial.read());
}
}
I can telnet into the wifly and send it the basic commands that are included in the user manual but how do i communicate with the arduino board from the telnet client? I want to turn on an led in pin 9 on the arduino for instance.