Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    MQTT Exception when connecting to a local broker

    Scheduled Pinned Locked Moved Discussion
    1 Posts 1 Posters 33 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.
    • J Offline
      Jobish John
      last edited by Jobish John

      Hi all,

      I am trying to publish MQTT data to a mosquitto broker running locally on my network (running on a different machine) from a fipy module (placed on a pyscan board, connectted to Atom in ubuntu 20.04) and I get the below error. Any suggestions/ pointers will be highly helpful.
      558dcc88-9cc5-41bb-88ac-6b7c1b5b6c5a-image.png

      I could follow the tutorial [1] and the could successfully connect and send data to io.adafruit.com, but I don't know why it fails to connect to the broker in the network. I am also able to connect other boards (e.g: arduino based) to the broker in the local n/w.

      The screenshots of the micropython code in atom, and what happens on the broker side, are also given below.
      210121aa-ec73-4011-9016-b674bb8e4ec7-image.png

      2c967ace-371b-47b6-9387-7373f218df33-image.png

      Thanks very much for your valuable time.

      [1] https://docs.pycom.io/tutorials/networkprotocols/mqtt/

      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
      • 1 / 1
      • First post
        Last post

      Pycom on Twitter

      Pycom