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

    UIFlow and ESP-now, error

    Scheduled Pinned Locked Moved UIFlow
    uiflow
    5 Posts 3 Posters 9.7k Views 2 Watching
    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.
    • D Offline
      Dragon
      last edited by Dragon

      Hi all, having a problem with esp-now and M5Stack core programmed with UI-Flow.
      I managed to connect a M5Stick c to an M5Stack core and the M5stick C sends out a changing value but when i try and use the value on the M5Stack it keeps telling me after i upload the code, unsupported types for le:'NONEtype, 'int'

      If i delete the part where i want to use the receive number it works fine.
      Below the code i used in UIflow

      0_1592046742557_Naamloos.png
      0_1592046797607_82221760_315635589450029_1949035596174406018_n.jpg

      Is there a way that i can use this number?

      1 Reply Last reply Reply Quote 0
      • R Offline
        robalstona
        last edited by robalstona

        Probably you must use block from espnow group to set pmk key on transmiter and receiver and set the same key.

        See this thread where i post a working example:

        https://community.m5stack.com/topic/2005/esp-now-m5stickc-problem

        1 Reply Last reply Reply Quote 0
        • D Offline
          Dragon
          last edited by

          Hi robalstona, i'll try this but i can receive without a problem, problem is the number i receive is a number i can't use. I can only show on display...

          1 Reply Last reply Reply Quote 0
          • D Offline
            Dragon
            last edited by

            Hi, try it but give the same faults...

            1 Reply Last reply Reply Quote 0
            • A Offline
              anvalin
              last edited by

              Hi Dragon.
              Picking up this thread because I ran into the same problem. Caused by an empty value when out of sync with the sender in a P2P network transmission scheme (not ESP related but similar). Resulting as "None" for a value that should be converted into an integer used in an if/else process. I solved this by putting the if/else in a try/except statement and settting the except(ion) to a failsafe value until sync.

              alt text

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post