Sie sind auf Seite 1von 15

Hacking Internet with Arduino

your machine will now talk with internet

Internet

Huge network of computer networks. TCP/IP , www , Mail VOIP, IPTV Torrent Instant Messaging, Internet Forums, and Social Networking, Online Shopping History (1968) 1/3 , DNS , ICAN, IPV4, IPV6

World Wide Web


a global set of documents, images and other resources, logically interrelated by hyperlinks and referenced with Uniform Resource Identifiers (URIs)

NeXT Computer Interlinked Hypertext Documents URL LINKS

WEBSITES
Web pages containing content such as text, images, video,audio, etc web server, web client Hypertext Transfer Protocol Static Websites Dynamic Websites CMS

CLIENT / SERVER
Server - Serves Client - Served what is served? RESOURCES Data, CPUs, printers, and data storage devices are some examples of resources.

IP / MAC / PORT / DNS


IP address: Internet Protocol Address MAC address: Unique Address of network device PORT:Software layer to identify applications or processes DNS: Domain Name System to link the IP address with URL

Type the following code


<html> <HEAD><TiTle>It Works</Title></HEAD> <body> <H1>My First Heading</H1> <p>HELLO</p> </body> </html>:

Ethernet Shield

CONNECTS ARDUINO WITH INTERNET IN A MINUTE

Ethernet Shield

5V (from the Arduino Board) Ethernet Controller: W5100 16K buffer 10/100Mb Connection on SPI port

Ethernet Shield

Ethernet Shield

Server

#include <SPI.h> #include <Ethernet.h> byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; IPAddress ip(192,168,5, 177); EthernetServer server(8080); void setup() { Serial.begin(9600); while (!Serial) { ; } Ethernet.begin(mac, ip); server.begin(); Serial.print("server is at "); Serial.println(Ethernet.localIP()); }

SERVER

Acknowledge client Print the requests :Serial Print the blank page Hello World Print data Print sensor information Interface buttons

Das könnte Ihnen auch gefallen