Hello everyone!
I have joined the forum after a lot of searching, and little progress, unfortunately! Please, allow me to explain...
I have an Uno and Ethernet Shield, and I am trying to control the brightness of the 3 colours of an RGB LED, using a form on a web page which is stored on the Ethernet Shield's SD card. What I have right now is heavily based on the TinyWebServer, which I have seen mentioned on here a few times, the BlinkLED example, to be more precise.
In the BlinkLED example, the web page has a single image which is used to turn the switch on and off, and because I want to enter values, I have had to change this completely. While I can get the page (and the accompanying JavaScript) to generate an array of 3 values (for red, green and blue respectively), I cannot make my current sketch accept this data.
To make things a little easier, I have been trying to work with just the red value for the last few hours, and I have noticed that using client.read(), as in the original example, only the first digit of the red value is read. When I print it out (using Serial.println()), it gives me a value corresponding to the ASCII value of the digit that has been read (i.e., 48 to 57).
So, I would like to know if it is possible to tell the Arduino not to change the incoming value to an ASCII number, and how exactly do I get it to take the whole number (which would go up to 255), and then following that, a set of 3 values?
I did email ovidiucp, the creator, a couple of weeks ago, but he didn't reply =(
I would sincerely appreciate any help,
plusminus_
P.S. I have attached my files and my current sketch, for anyone reading who may be familiar with TWS, and/or is willing to help
help.zip (43.1 KB)