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

    lte.disconnect() failures...

    Scheduled Pinned Locked Moved FiPy
    1 Posts 1 Posters 102 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.
    • securigyS Offline
      securigy
      last edited by

      I am constantly getting exception when calling lte.disconnect(), no matter what I do... My connection code is working fine.
      After connecting I am pushing data with MQTT over CAT-M1. For some reason when I start the chunks of data (json strings) of about 400 bytes go through but then mqttClient.publish() fails with code 118, which is normally failure to connect...
      Another strange thing is that after the code worked yesterday ok and mqttCleint.connect() was returning 0, today it returns 1. BTW, I am trying to connect to ThingsBoard... not sure if the setup there is related...

      Anyway, I do not know if failure in MQTT (sockets) really affects LTE connection and cause lte.disconnect throw exception...
      What say you?

      if lte.isconnected():
              lte.disconnect()
      
      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