🤖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

    UIFlow
    uiflow
    3
    5
    8.3k
    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
      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
        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
          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
            Dragon
            last edited by

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

            1 Reply Last reply Reply Quote 0
            • A
              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
              • First post
                Last post