Shield Ethernet Shield W5100 R3 UNO Mega 2560 1280 328 UNR R3 Development Board

Price:

1.15


Electronic Components Store for Everything!
9W G4 G9 COB LED Halogen Bulb AC110V/220V Home Light LED Dimmable Silica Gel Lamp
9W G4 G9 COB LED Halogen Bulb AC110V/220V Home Light LED Dimmable Silica Gel Lamp
2.37
2.37
4W High Power Imitation Lumen RGBW Led Eight Feet 30mil 40mil 45mil
4W High Power Imitation Lumen RGBW Led Eight Feet 30mil 40mil 45mil
2.29
2.29

Shield Ethernet Shield W5100 R3 UNO Mega 2560 1280 328 UNR R3 Development Board

https://www.satistronix.com/web/image/product.template/4379/image_1920?unique=3487516
(0 review)

6.31 6.3100000000000005 USD 6.31

¥ 44.00

Not Available For Sale


    This combination does not exist.


    SKU :
    181141
    Share :
    100% original guarantee
    Return within 30days
    Worldwide Fast delivery

    Description:

    • Ethernet W5100 network expansion module, can become a simple Web server or a network control to read and write digital and analog interface and other network applications. IDE can be used directly in the Ethernet library files can be achieved with a simple Web server.

    • Meanwhile, the version supports mini SD card (TF card) reader

    • The expansion board uses a stackable design, it can be directly plugged into the , while our other expansion boards can also plug in to.

    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 

    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 ();

    }

    }