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

    Connected to wifi but no internet

    Scheduled Pinned Locked Moved Guides
    wifi
    4 Posts 3 Posters 1.5k Views 3 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.
    • M Offline
      misterlisty
      last edited by misterlisty

      Not sure if anyone can help, i can connect to my wifi with my Lopy without issues but it cannot connect to the internet. I was able to get mqtt publish/subscribe working for a while but now it appears the internet and mqtt(which relies on the internet) is not working.

      1 Reply Last reply Reply Quote -1
      • sebS Offline
        seb
        last edited by

        Can you provide more details of what exactly isnt working? What errors are you seeing?

        1 Reply Last reply Reply Quote 0
        • M Offline
          misterlisty
          last edited by

          Lopy connects to my home router. I can connect to it using the allocated IP address, but it will not connect to the internet. ie mqtt client cannot publish messages to a topic

          1 Reply Last reply Reply Quote 0
          • X Offline
            Xykon administrators
            last edited by

            Can you please run the following code after connecting to WiFi and post the output?

            import socket
            s = socket.socket()
            print(socket.getaddrinfo('time-a.nist.gov', 13))
            s.connect(socket.getaddrinfo('time-a.nist.gov', 13)[0][-1])
            s.read()
            

            Christian Ehlers

            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