Sell Shield Ethernet Shield W5100 R3 UNO Mega 2560 1280 328 UNR R3 W5100 Development board for arduino DL best price
0
ratings
₱1,102
Ships from | Malate, Metro Manila |
---|
Product Description
Test Code:
/*
* Web Server
*
* A simple web server that shows the value of the analog input pins.
*/
#include
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
byte ip[] = { 192, 168, 0, 15 };
Server server(80);
void setup()
{
Ethernet.begin(mac, ip);
server.begin();
}
void loop()
{
Client client = server.available();
if (client) {
// an http request ends with a blank line
boolean current_line_is_blank = true;
while (client.connected()) {
if (client.available()) {
char c = client.read();
// if we've gotten to the end of the line (received a newline
// character) and the line is blank, the http request has ended,
// so we can send a reply
if (c == '\n' && current_line_is_blank) {
// send a standard http response header
client.println("HTTP/1.1 200 OK");
client.println("Content-Type: text/html");
client.println();
// output the value of each analog input pin
client.print("welcome to tinyos");
client.println("
");
client.print("//*************************************");
client.println("
");
client.print(www.tinyos.net.cn);
client.println("
");
client.print("//*************************************");
client.println("
");
for (int i = 0; i 6; i++) {
client.print("analog input ");
client.print(i);
client.print(" is ");
client.print(analogRead(i));
client.println("
");
}
break;
}
if (c == '\n') {
// we're starting a new line
current_line_is_blank = true;
} else if (c != '\r') {
// we've gotten a character on the current line
current_line_is_blank = false;
}
}
}
client.stop();
}
}
Compare
![Shield Ethernet Shield W5100 R3 UNO Mega 2560 1280 328 UNR R3 W5100 Development board for arduino](https://phshop.nghiatu.com/images/ph/5e841eb7f79fe6a3cb2d623ca890e8f9-small.jpg)
Shield Ethernet Shield W5100 R3 UNO Mega 2560 1280 328 UNR R3 W5100 Development board for arduino
5
14
ratings
17
sold
₱470
![UNO Shield Ethernet Shield W5100 R3 UNO Mega 2560 1280 328 UNR R3 < only W5100 Development board](https://phshop.nghiatu.com/images/ph/a00e26dd78f58d571208ca83c3671e66-small.jpg)
UNO Shield Ethernet Shield W5100 R3 UNO Mega 2560 1280 328 UNR R3 < only W5100 Development board
4.8
30
ratings
125
sold
₱814
![UNO Shield Ethernet Shield W5100 R3 UNO Mega 2560 1280 328 UNR R3 < only W5100 Development board FOR](https://phshop.nghiatu.com/images/ph/6753dd78618e31c5b32ede16d7749e9a-small.jpg)
UNO Shield Ethernet Shield W5100 R3 UNO Mega 2560 1280 328 UNR R3 < only W5100 Development board FOR
5
90
ratings
394
sold
₱814
![UNO Shield Ethernet Shield W5100 R3 UNO Mega 2560 1280 328 UNR R3 < only W5100 Development board FOR](https://phshop.nghiatu.com/images/ph/3ba11bc2fab7572e04e2a4a9cbfb2a0c-small.jpg)
UNO Shield Ethernet Shield W5100 R3 UNO Mega 2560 1280 328 UNR R3 < only W5100 Development board FOR
5
2
ratings
4
sold
₱390
![Network Expansion Board Ethernet Shield W5100 R3 Mega 2560 1280 328 for UNR R3, W5100 Development Board for UNO](https://phshop.nghiatu.com/images/ph/3279e58308432425ac179f4a3a45325c-small.jpg)
Network Expansion Board Ethernet Shield W5100 R3 Mega 2560 1280 328 for UNR R3, W5100 Development Board for UNO
0
ratings
₱495
![Network Expansion Board Ethernet Shield W5100 R3 Mega 2560 1280 328 for UNR R3, W5100 Development Board for UNO](https://phshop.nghiatu.com/images/ph/5d6f45a71c77b2dc5953859c5c28c22e-small.jpg)
Network Expansion Board Ethernet Shield W5100 R3 Mega 2560 1280 328 for UNR R3, W5100 Development Board for UNO
0
ratings
₱551
![Network Expansion Board Ethernet Shield W5100 R3 Mega 2560 1280 328 for UNR R3, W5100 Development Board for UNO](https://phshop.nghiatu.com/images/ph/777accc1941a98b736bad13b1fa06228-small.jpg)
Network Expansion Board Ethernet Shield W5100 R3 Mega 2560 1280 328 for UNR R3, W5100 Development Board for UNO
0
ratings
₱535
![For UNO Shield Ethernet Shield Support Mega for UNO R3 2560 1280 328 UNR R3 Only W5100 Development Board for Arduino](https://phshop.nghiatu.com/images/ph/16ab330e7ea1646871c9843e90d70d63-small.jpg)
For UNO Shield Ethernet Shield Support Mega for UNO R3 2560 1280 328 UNR R3 Only W5100 Development Board for Arduino
0
ratings
₱735
![Shield UNO Ethernet Shield W5100 R3 UNO Mega 2560 1280 328 UNR R3 sólo W5100 Placa de desarrollo para Arduino](https://phshop.nghiatu.com/images/ph/f25a295647939333a9a4a5defe2dd961-small.jpg)
Shield UNO Ethernet Shield W5100 R3 UNO Mega 2560 1280 328 UNR R3 sólo W5100 Placa de desarrollo para Arduino
0
ratings
2
sold
₱559
![Network Expansion Board Ethernet Shield W5100 R3 Mega 2560 1280 328 for UNR R3, W5100 Development Bo](https://phshop.nghiatu.com/images/ph/9df7fe35dfb61aee6a0a18e61d4244ce-small.jpg)
Network Expansion Board Ethernet Shield W5100 R3 Mega 2560 1280 328 for UNR R3, W5100 Development Bo
0
ratings
₱1,341