Pages: [1]   Go Down
Author Topic: arduino ethernet shield noob lost  (Read 252 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Sr. Member
****
Karma: 1
Posts: 341
UNO
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all, i justo bought a new arsuino ethernet shiel but i have never use anything like this before, so im a bit lost in this case, so i just want to connect the arduino to internet, and look out if a led changes its state....

but for this, i need a server or the web page its inside the arduino???
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 178
Posts: 8064
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Study the examples at File->Examples->Ethernet
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 548
Posts: 46026
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

A client asks questions. A server provides answers.

Since the Arduino knows whether the LED is on or off, the choice of client or server seems pretty clear.
Logged

0
Offline Offline
Sr. Member
****
Karma: 1
Posts: 341
UNO
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks, but if i want to use something more complicated like some sensors and motors on a device and i want to get the readings froms this sensors, and also control the motors.... its a server or a client??
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 548
Posts: 46026
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The Arduino knows the answers (the sensor values). It can answer questions that contain data, like GET /?color=green&speed=89 by setting the green motor to a speed of 89 (Yes, that's a dumb example).

Servers know the answers, so you want the Arduino to be a server.
Logged

Pages: [1]   Go Up
Jump to: