MQTT Exception when connecting to a local broker



  • 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/


Log in to reply
 

Pycom on Twitter