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

    Connecting to AWS using LAN Base

    UIFlow
    2
    5
    3.4k
    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.
    • H
      hude_m5
      last edited by

      Connecting to AWS using LAN Base

      I am a product designer and have recently been learning programming.
      I'm trying to use M5 Stack and UI FLOW for a simple IoT device prototype.

      I want to connect AWS IoT Core and M5 Stack via MQTT and subscribe with M5 Stack.
      However, I cannot use wireless LAN in that environment, so I want to use LAN Base for wired connection.
      Recently an MQTT block for LAN Base was added to UI FLOW.
      However, I can't set up a private key or certificate like the AWS block.
      How can I program it?

      For example, can I just connect the AWS block following the Init block for LAN Base?
      In that case, I don't know what to set for the remoteIP.

      1 Reply Last reply Reply Quote 0
      • ajb2k3A
        ajb2k3
        last edited by

        What do you mean by can’t set up AWS credentials as they are independent of the lan base

        UIFlow, so easy an adult can learn it!
        If I don't know it, be patient!
        I've ether not learned it or am too drunk to remember it!
        Author of the WIP UIFlow Handbook!
        M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

        1 Reply Last reply Reply Quote 0
        • H
          hude_m5
          last edited by

          Thank you.
          LAN Base's MQTT init block does not have an entry to register a keyFile or certFile like the AWS block.

          ... Maybe I have misunderstood the programming process itself.
          How can I use LAN Base to connect to AWS via wired LAN?

          ajb2k3A 1 Reply Last reply Reply Quote 0
          • ajb2k3A
            ajb2k3 @hude_m5
            last edited by

            @hude_m5 said in Connecting to AWS using LAN Base:

            Thank you.
            LAN Base's MQTT init block does not have an entry to register a keyFile or certFile like the AWS block.

            ... Maybe I have misunderstood the programming process itself.
            How can I use LAN Base to connect to AWS via wired LAN?

            You have to set SSL to true to get the cert but why not just use AWS setup does not care how you physically connect to the world as long as your core can access the WWW
            0_1658255330344_Screenshot 2022-07-19 at 19.27.15.png

            UIFlow, so easy an adult can learn it!
            If I don't know it, be patient!
            I've ether not learned it or am too drunk to remember it!
            Author of the WIP UIFlow Handbook!
            M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

            H 1 Reply Last reply Reply Quote 0
            • H
              hude_m5 @ajb2k3
              last edited by

              @ajb2k3
              I was able to subscribe via Wi-Fi using the AWS block.
              However, when I turned off Wi-Fi with LAN Base connected, I could not communicate.

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