Using the Arduino Ethernet shield as a server

in tutorials by DP | 2 comments

Luca shows how to turn your Arduino with an Ethernet shield into a server. He goes over how to code your Arduino to handle HTML and HTTP protocols using strings.

I’m going to show you a simple program that prints on serial connection browser‘s requests and answers with a simple HTML page. This program is useful to understand how to use HTTP functions and also to find out which informations a browser sends within the request (you’ll learn how to use those informations in a coming post).

At the bottom of the page he showed an example of page icon usage, for which he used our site. Thanks Luca!

This entry was posted in tutorials and tagged , , .

Comments

  1. bob says:

    Since the Ethernet shied only has 4 connections available, it is not going to be much of a ‘server’ especially since the Arduino is not multithreaded, as such it is only going to deal with 1 connection at a time
    So this cannot be classed as a ‘server’ but rather a single client and master.
    Move along nothing to see here.

    • James Kasper says:

      thanks for the comment bob. so here I am trolling again. Wait, what is it? not much of a server or not a server? 4 connections really? good because I didn’t realize it had that many. I was going to be happy with “get inline and wait your turn”… No it’s ok I just looked it up over here: http://en.wikipedia.org/wiki/Web_server and it doesn’t say what is the minimum connections it only says usually. It says this specifically about load limits:

      A web server (program) has defined load limits, because it can handle only a limited number of concurrent client connections (usually between 2 and 80,000, by default between 500 and 1,000) per IP address (and TCP port) and it can serve only a certain maximum number of requests per second depending on:
      its own settings,
      the HTTP request type,
      whether the content is static or dynamic,
      whether the content is cached, and
      the hardware and software limitations of the OS of the computer on which the web server runs.

      So It can be a server and no one has to rewrite anything. Or leave.
      I have an Arduino Uno Ethernet, a mega, ethernet shield, 328 chip…
      Rock on makers build yourself a “personal webserver” just check out luca and arduino.cc

Leave a Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Notify me of followup comments via e-mail. You can also subscribe without commenting.