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

    EspNow is receiving previous messages

    Scheduled Pinned Locked Moved UIFlow
    uiflow
    3 Posts 3 Posters 7.0k Views 1 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.
    • S Offline
      SlashAndBurn
      last edited by

      I've started work on a project to make a sports tracker and it was working well for a bit, but now i'm a little confused on how the EspNow is working.

      Esp Setup on Controller
      0_1623026871180_2021-06-06_19-47-27.png

      Esp Setup on Check-In Points
      0_1623026831922_2021-06-06_19-46-47.png

      My Setup
      Core2 as the Brains
      Atom X 2 as the check in points

      When the player taps the RFID card against the reader at either check in point it send the device's MAC Address + "@" + "PYLON" + "@" + Players name to the hub device. Then the hub will receive the message and process it later. After it has been processed the hub send a signal to the check-in point to display a "!" symbol.

      The odd thing is, if I restart every piece and start scanning, the wrong check-in point will get the signal. Then if I scan it again, it moves to the right point, but if I move to the next point, the last check-in point receives the signal. So it is acting like a buffer and the last one is making it through.

      My Controller

      0_1623026732446_2021-06-06_19-42-51.png

      My Check-in Points

      0_1623026742117_2021-06-06_19-44-09.png

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

        Hello,
        I'm seeing the same issue with espnow receiving the previous message after the devices have been running for anywhere from couple of hours to a day. I'm using uiflow version 1.9.5 on a M5Stamp and Core2. The project is a home alarm system, I'm only sending 4 bytes of data when a zone is opened/closed or if the alarm is armed or disarmed.

        If I can't find the solution I'm afraid I going to have to ditch uiFlow and try the Arduino API.

        Did you ever figure out the issue?

        Thank You
        Austin

        1 Reply Last reply Reply Quote 0
        • S Offline
          shichimi
          last edited by

          I have same problem , after some time EspNow recieve callback block returns duplicate message.
          Uiflow 1.10.7 , firmware m5 tough 1.10.6

          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