Go Down

Topic: webServer Example (Read 1 time) previous topic - next topic

pawqar

Quote
No. The example doesn't use mySerial and it doesn't print the value of client.read().

If you are going to modify the example, feel free to do a good job.


I was answering to your question about if there were something connecting to the ports.

I thought that maybe it could be a conflict using the Serial for that reason I prove with the SoftwareSerial library. But if I use the normal serial instructions it happens the same.

Arduino Ethernet, the FTDI board and the usb cable using just
char c = client.print() ;
Serial.print(c);
Serial.print(" ");
it prints the strange symbols. Or if I change it for
char c = client.print() ;
Serial.print(client.print());
Serial.print(" ");
it prints the numbers as you said with a space between then.

The strage thing is that when I tried this before no matter with which board it prints the http frame-

http://192.168.112.31/
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent:Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.19 (KHTML, like Gecko) Ubuntu/11.10 Chromium/18.0.1025.168 Chrome/18.0.1025.168 Safari/535.19

or something as this.


SurferTim

Quote
*My operating system is Ubuntu 11 and since a week I 'm using arduino 1.0 IDE.

IDE v0022 and v1.0 had a bug in the ethernet library that caused problems like that. Try downloading the new IDE v1.0.1 from the Arduino site and unpack it in a local directory. Then navigate to that directory and run the arduino shell script there.


pawqar

Now It works!

Thank you!! And sorry for this, because at the end It was a version of the IDE problem.


PaulS

Quote
And sorry for this, because at the end It was a version of the IDE problem.

No problem. Next time someone has a similar problem, maybe I'll remember this thread. Or, maybe they'll even find it and not have to ask.

SurferTim


Go Up