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

    MQTT Publish working but subscribe hangs device

    Scheduled Pinned Locked Moved Bug Report
    3 Posts 2 Posters 4.2k 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.
    • T Offline
      tobievii
      last edited by

      Hi, I've been testing on 3 different MQTT instances, i can publish from the UI FLOW on my Fire Core unit. As soon as i add the subscribe to a topic the units freeze and nothing happens. Ive tried on 4 different Fire Cores i have with me and on 2 different stick C models, add do the same, as soon as you add subscribe the units boot and seem like it tries to connect to MQTT then freezes

      Using firmware 1.4.2

      0_1577528071067_00ec3a9f-6b32-4d7b-a382-648b218706bc-image.png w

      1 Reply Last reply Reply Quote 0
      • world101W Offline
        world101
        last edited by

        Try removing the “Convert to str” block from label0 to see if that helps.

        world101W 1 Reply Last reply Reply Quote 0
        • world101W Offline
          world101 @world101
          last edited by

          @world101 said in MQTT Publish working but subscribe hangs device:

          Try removing the “Convert to str” block from label0 to see if that helps.

          On second thought, after some testing I’m seeing the same thing. It doesn’t have to do with the Convert to str block in the subscribe block. It seems to hang for me in the loop when reading the temperature or humidity values from the env unit. If you put some dummy text values as strings into the map, it works fine. So I’ll continue testing to see if I can find another way to fix it. If I come up with something, I’ll post it here.

          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