Date post: | 03-Apr-2018 |
Category: |
Documents |
Upload: | yo-gain-draw |
View: | 217 times |
Download: | 0 times |
of 15
7/29/2019 Arduino Internnet
1/15
Hacking Internet with
Arduinoyour machine will now talk with internet
7/29/2019 Arduino Internnet
2/15
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
Internet
7/29/2019 Arduino Internnet
3/15
NeXT Computer
Interlinked Hypertext Documents URL
LINKS
World Wide Web
a global set of documents, images and other resources,logically interrelated by hyperlinks and referenced with UniformResource Identifiers (URIs)
7/29/2019 Arduino Internnet
4/15
Web pages containing content such as
text, images, video,audio, etc
web server, web client Hypertext Transfer Protocol
Static Websites
Dynamic Websites CMS
WEBSITES
7/29/2019 Arduino Internnet
5/15
Server - Serves
Client - Served
what is served?RESOURCES
Data, CPUs, printers, and data storage
devices are some examples of
resources.
CLIENT / SERVER
7/29/2019 Arduino Internnet
6/15
IPaddress: Internet Protocol Address
MAC address: Unique Address of network
devicePORT:Software layer to identify
applications or processes
DNS: Domain Name System to link theIP address with URL
IP / MAC / PORT / DNS
7/29/2019 Arduino Internnet
7/15
Type the following code
ItWorks
My First Heading
HELLO
:
7/29/2019 Arduino Internnet
8/15
CONNECTS
ARDUINO
WITH
INTERNET
IN AMINUTE
Ethernet Shield
7/29/2019 Arduino Internnet
9/15
5V (from the Arduino Board)
Ethernet Controller: W5100
16K buffer
10/100Mb
Connection on SPI port
Ethernet Shield
7/29/2019 Arduino Internnet
10/15
Ethernet Shield
7/29/2019 Arduino Internnet
11/15
Ethernet Shield
7/29/2019 Arduino Internnet
12/15
Server
7/29/2019 Arduino Internnet
13/15
#include #include
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());
}
7/29/2019 Arduino Internnet
14/15
Acknowledge clientPrint the requests :Serial
Print the blank pageHello World
Print dataPrint sensor information
Interface buttons
SERVER
7/29/2019 Arduino Internnet
15/15