Programming-Arduino (1) - Pages-178
Programming-Arduino (1) - Pages-178
requests to Internet services using both of these types of board. Finally, some
other options like the Particle Photon and Arduino Yun will be briefly described.
HTTP
The Hypertext Transport Protocol is the method by which Web browsers
communicate with a Web server.
When you go to a page using a Web browser, the browser sends a request to
the server hosting that page, saying what it wants. What the browser asks for
may be simply the contents of a page in HTML. The Web server is always
listening for such requests, and when it receives one, it processes it. In this
simple case, processing the request just means sending back HTML that you
have specified in the Arduino sketch.
HTML
The Hypertext Markup Language is a way of adding formatting to ordinary text
so that it looks good when the browser displays it. For example, the following
code is HTML that displays on a browser page as shown in Figure 10-2 :