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

    OSError: -1

    Scheduled Pinned Locked Moved Getting Started
    umqttoserror -1connection prob
    2 Posts 2 Posters 212 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.
    • B Offline
      brossingo
      last edited by

      Hello everyone, I am currently trying to send sensor values to a IOT platform (Adafruit here), using the umqtt library. I can successfully connect to a wifi before connecting to the MQTT client. When I try do that last take, the following error is raised : OSError: -1. The thing is, it doesn't happen always. Could you someone please me tell me what this means ?Even though I made researches on the internet, none of the answers I found could fulfill me. I can provide you with a piece of code if necessary. I didn't think it would be necessary since I made this work few times before and followed exactly the tutorial, so I guess the issue doesn't come from the code, but maybe from the device or the platform itself ?
      Thanks for your help

      T 1 Reply Last reply Reply Quote 0
      • T Offline
        timh @brossingo
        last edited by

        @brossingo

        I have encountered this. (mainly when using incorrect firmware).
        You should also include the stacktrace, so we can see where in umqtt it is occuring.

        T

        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