Warm prompt:
Dear buyer, Our cheapest transportation services Economic category logistics (SunYou Economic Air Mail ,China Post Ordinary Small Packet Plus ) can be traced only befor it arrive your country,please choose Standard category logistics if you want a full tracking info.
For example:
Package Content:
20 x Ethernet shields With Wiznet W5100 Ethernet Chip
The Test Code:
/ *
* the Web Server
*
* A simple web server that shows the value of the analog input pins.
* /
# include
Byte MAC [] = {xbe xde 0, 0 xad, 0, 0 xef, 0 xfe, 0 xed};
IP byte [] = {192, 168, 0, 15};
Server Server (80);
Void setup ()
{
Ethernet. The begin (MAC, IP);
Server. The begin ();
}
Void loop ()
{
The Client Client = server. The available ();
{if (the client)
/ / an HTTP request ends with a blank line
Boolean current_line_is_blank = true;
While (the client) connected ()) {
If (client. The available ()) {
Char c = client. The 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 headers
Client. Println (” HTTP / 1.1 200 OK “);
Client. Println (” content-type: text/HTML “);
Client. The println ();
/ / the 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 ‘r e 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 ();
}
}
USD 1.90-1.96/pieceUSD 3.14/setUSD 15.60-16.80/setUSD 1.45/pieceUSD 1.96/setUSD 1.25/setUSD 2.25/setUSD 3.40/piece