🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Where is LAN Module example??

    PRODUCTS
    lan module
    4
    10
    23.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      nnn
      last edited by

      I would like to try "LAN Module with W5500 Chip".
      Where is LAN Module example??

      1 Reply Last reply Reply Quote 0
      • S
        sheepDog
        last edited by

        +1

        I am looking also for the example.

        1 Reply Last reply Reply Quote 0
        • S
          sheepDog
          last edited by

          Hello,

          can anyone help with a working LAN Module example for W5500?

          1 Reply Last reply Reply Quote 0
          • S
            sheepDog
            last edited by

            Hello M5Stack-Admin,

            the link for the LAN-Modul at your homepage is corrupt.

            This part didn't work:

            Documents 
            ...
            Example
            Arduino Example
            

            Please look at "Documents" at this page: https://github.com/m5stack/m5stack-documentation/blob/master/en/product-documents/modules/m5stack_lan_module.rst

            N 1 Reply Last reply Reply Quote 0
            • N
              nnn @sheepDog
              last edited by

              I found an example of W5500, but it did not work.

              W5500 example is
              https://github.com/adafruit/Ethernet2

              But,I get the following error in my environment.

              Failed to configure Ethernet using DHCP

              My code is

              
              #include <SPI.h>
              #include <Ethernet2.h>
              
              byte mac[] = {  
                0x00, 0xAA, 0xBB, 0xCC, 0xDE, 0x02 };
              
              
              void setup() {
                Serial.begin(115200);
                if (Ethernet.begin(mac) == 0) {
                  Serial.println("Failed to configure Ethernet using DHCP");
                  // no point in carrying on, so do nothing forevermore:
                  for(;;)
                    ;
                }
                Serial.print("My IP address: ");
                for (byte thisByte = 0; thisByte < 4; thisByte++) {
                  Serial.print(Ethernet.localIP()[thisByte], DEC);
                  Serial.print("."); 
                }
                Serial.println();
              }
              
              void loop() {
              
              }
              
              
              N 1 Reply Last reply Reply Quote 0
              • N
                nnn @nnn
                last edited by

                And, Arduino Example page in M5Stack LAN Module is "Page not found".
                M5Stack-Admin,I want you to correspond.
                https://github.com/m5stack/m5stack-documentation/blob/master/en/product-documents/modules/m5stack_lan_module.rst

                1 Reply Last reply Reply Quote 0
                • N
                  nnn
                  last edited by

                  My problem was solved below.

                  https://github.com/m5stack/M5Stack/tree/master/examples/Modules/W5500

                  https://github.com/m5stack/m5stack-documentation/issues/4

                  m5-docsM 1 Reply Last reply Reply Quote 0
                  • m5-docsM
                    m5-docs
                    last edited by

                    Here is the LAN example
                    https://github.com/m5stack/M5Stack/tree/master/examples/Modules/W5500

                    I have updated at the m5stack document website
                    please visit https://m5stack.readthedocs.io/en/latest/product-documents/modules/m5stack_lan_module.html

                    M5Stack documentation URL

                    https://docs.m5stack.com

                    1 Reply Last reply Reply Quote 0
                    • m5-docsM
                      m5-docs @nnn
                      last edited by

                      @nnn Thank you!

                      M5Stack documentation URL

                      https://docs.m5stack.com

                      1 Reply Last reply Reply Quote 0
                      • M
                        Matthew
                        last edited by

                        Hi!
                        Here is an example (Korean but you can using code, Simple Chat Server)

                        https://www.wiznetian.com/m5stack-lan-모듈을-이용한-간단한-채팅-서버-만들기/

                        And I will publish this document in English as soon as possible. :D

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post