- Fri Jan 07, 2011 5:36 am
#116812
e.g. The PC server might make requests to the Arduino server like:
Another solution would be to modify Firmata (or one of the "command driven" sketches available) to receive instructions via the WiFly. (Probably via a telnet or raw socket connection.)
--Philip;
takha wrote:Well i modified your server sketch to light up an LED over wifly, but the problem is due to the space restrictions on arduino, i can only place an 'on' and 'off' post button using html to display on the computer browser to operate the LED.If you put strings in "PROGMEM" you can have larger pages. Additionally you could look into using something like a MicroSD shield to store the pages.
What i really want to do is have a proper website on the computer with the relevant buttons to operate something on the arduino using wifly. Any help would be greatly appreciated.If you have your server with full web pages on your PC, you could then have that make a request to a server sketch running on your Arduino. Because the sketch running on your Arduino would only need to parse the request string and not display any HTML it would require less memory.
e.g. The PC server might make requests to the Arduino server like:
Code: Select all
You could use something like the TextFinder library to help parse the requests.http://10.1.1.4/action/light/on
http://10.1.1.4/action/stereo/off
http://10.1.1.4/action/blender/pulse
Another solution would be to modify Firmata (or one of the "command driven" sketches available) to receive instructions via the WiFly. (Probably via a telnet or raw socket connection.)
--Philip;