Hardware Reference
In-Depth Information
It's now time to test the sketch.
Note
The complete code for this first chapter can be found the GitHub repository of the topic:
https://github.com/openhomeautomation/arduino-networking/tree/master/chapter1
Make sure that the Ethernet cable is plugged in your shield and your router, and upload
the sketch to the Arduino board. You can now also open the Serial Monitor, and select the
correct Serial speed (115200 for the Arduino sketch of this chapter); that's the first thing
you should see, which is the IP address of your board:
IP address: 192.168.1.103
Then, the Arduino board should connect to the server:
Connecting...
If this is successful, the output will show that it is indeed connected:
connected
Now, the Arduino board will send the GET request to the server in order to grab the con-
tent of the test page. The server will answer with an HTTP 200 OK status if the request
was successful, along with the contents of the page:
HTTP/1.1 200 OK
Content-Length: 308
Content-Type: text/html
Last-Modified: Tue, 27 May 2003 15:17:04 GMT
Accept-Ranges: bytes
ETag: "6291ea76324c31:5897"
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Date: Thu, 15 May 2014 17:35:40 GMT
Connection: close
Search WWH ::




Custom Search