hi all,
today i received an ethernet shield, and i tried the two examples ChatServer and WebServer, which work well.
then i wrote a little script on my own, which surprisingly doesn't work.
maybe there is something very basicly wrong with my code.
here's a description of what it does:
- it sets a led (13) for output
- it starts a server on port 6606
- it opens Serial for debugging
when a client connects, it waits for data with client.available()
then a switch:
if it's a 's', set the LED and reply on socket and serial
if it's a 'c', clear the LED, as above
if it's a 'q', quit the client
in principle this works, i can see the debug messages and the responses on the socket.
but the led is half lit all the time, it seems as if it's turned on an off be something else.
in fact, there's a quite hight frequency on pin13.
i have also tried the digital/blink example, it works fine.
(i have tried it with the ethernet shield connected).
does anybody have a hint? something with interrupts maybe?
of course i can provide the code..
-t