MQTT OSError issue



  • Hello,
    I am having a small issue with the MQTT module.
    The issue is with my gateway. Currently I just have one node sending a small message over and over. The gateway would package it all up and then send it through MQTT to a raspberry pi running node-red. Node-red would just display the payload in a debug window.
    When the program was running before I wasn't getting any issues. Something has changed not sure what and I can only get about 195 messages passed to node-red before it crashes.
    The error is a OSError: [Errno 104] ECONNRESET
    0_1513528413476_b0a6b8e2-e075-4f88-837d-c3c21cc6068e-image.png
    I am running this on a Lopy with firmware 1.9.2.b2
    Line 153
    0_1513528510063_35a02d57-8f39-466c-ab4c-772b7642132f-image.png
    Line 110 mqtt.py (module off the web)
    0_1513528568558_089ad724-0dcd-47af-acf7-9d5418ec4d9b-image.png

    This was all working the only thing I did change was the packet payload which is a string. I added time and bat.
    0_1513528647818_0eeebf5a-ba94-49e0-9ea7-17fbfd84685d-image.png

    Thank for any help.



  • @rkeiii Hi, how did you switched from simple to robust? sorry I am just learning and Im very novice on this...thanks a lot in advance



  • @rkeiii , thank you I will give it a try.



  • Hi robd,

    I just wanted to let you know I experienced something similar with my WiPy 2.0. I simply switched from the umqtt simple to umqtt robust which auto reconnects. Not sure if that's useful in your circumstance but I thought I'd let you know either way.

    I never found a great explanation (havent had tiem to go throug hthe source) for why the ECONNRESET was happening out of the blue.


 

Hello World?

Pylife on Kickstarter - November 2018








Back Us On Kickstarter >

Pycom on Twitter