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

    decoding received Lora P2P messages

    Scheduled Pinned Locked Moved Units
    2 Posts 1 Posters 1.7k Views
    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.
    • A Offline
      adamm5
      last edited by

      In Uiflow2, the Lora Units append the transmitted data to some transmission metrics in a form of tuple.

      I need to strip out the json I'm sending in the third part of the tuple from the unwanted information, and get that into a map to access the values. This is proving difficult in UiFlow2. Does anyone have a uiflow2 example of doing this?

      (-22, 11, '{"mpa": 1, "cnt": 1, "rly": 1, "v": 66, "l": 1}')
      
      1 Reply Last reply Reply Quote 0
      • A Offline
        adamm5
        last edited by adamm5

        well sorted it out by counting characters...however this will break if the preamble data changes length and i can't locate a spec for this protocol.

        The UIFlow2 section of the online specs in m5.docs also just says 'coming soon' for UIFlow2....although it does actually exist (albeit undocumented....).

        Is there another source for this documentation???

        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