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

    M5stack fails to connect with blynk

    Micropython
    3
    6
    6.8k
    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.
    • M
      mm-uiflow
      last edited by

      Hello guys, i tried to run blynk, but i canot connect my atomlite's to blynk. i tried port 8080, 443 and 80 but the devices doesnt shows up in blynk as Online here is my configuration
      0_1654723263901_af189eed-724f-4479-a0c8-6b3d80319e5c-image.png

      print('Start')
      wlan = network.WLAN(network.STA_IF)
      blynk1 = blynk.Blynk(server='blynk.cloud', port=80, token='XXXX', heartbeat=30)
      blynk1.run()
      m5mqtt.start()

      Any ideas?

      1 Reply Last reply Reply Quote 0
      • felmueF
        felmue
        last edited by

        Hello @mm-uiflow

        I think you need to put the ‘blynk1.run()’ statement in the loop.

        Thanks
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        1 Reply Last reply Reply Quote 0
        • M
          mm-uiflow
          last edited by

          I created a timer 0_1654770167257_78ecc3dc-435e-4d07-a135-6f5c94cdf6df-image.png

          and every 500 ms its called. still no connection
          0_1654770247174_2ad3dece-a7b0-4eb3-ac41-b5caaa4d6822-image.png

          in Debug i see the prints start and loop :
          0_1654770280796_7b0974e9-c326-4a24-9fcd-4870f941e47b-image.png

          i only used the AUTH_TOKEN, in bylnk cloud there are more things defined, you think this is the problem?
          0_1654770345513_601398db-347c-4abe-a3be-0289ca90284e-image.png

          1 Reply Last reply Reply Quote 0
          • felmueF
            felmue
            last edited by

            Hello @mm-uiflow

            yes, I think to successfully connect to blynk.cloud.com the template id is required as well. See here - check section [IMPORTANT] a bit down the page.

            I've done a quick test with Arduino Blynk code and my M5Core2 connected immediately. But with UIFlow my M5Core2 doesn't connect at all.

            I think UIFlow Blynk blocks need to be adapted to the new template id requirement.

            Thanks
            Felix

            GPIO translation table M5Stack / M5Core2
            Information about various M5Stack products.
            Code examples

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

              You can't connect to Blynk 2.0 until there is a big rebuild of the firmware as blynk uses the Virtual twin aka template method to connect whereas the old Blynk just used the username password combo.

              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 2
              • ajb2k3A
                ajb2k3
                last edited by

                Not only that but the OLD password system has been upgraded to use certificates and encryption keys.

                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
                • First post
                  Last post