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

    Connecting to home router

    Scheduled Pinned Locked Moved LoPy
    6 Posts 3 Posters 2.0k 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.
    • B Offline
      Bashir
      last edited by

      hi, using the example found here to connect my lopy to my router. when running the code I can connect and all seems to work ok.

      how do I modify the boot.py so it connects on bootup. I have ftp'd the device but unable to read/open boot.py or main.py.

      https://docs.pycom.io/lopy/lopy/tutorial/wlan.html#connecting-to-your-home-router

      Can you help me modify the boot.py file.

      I am unable to open, unable to delete or download

      Thank you

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

        Did you make sure your Filezilla settings are correct?

        Christian Ehlers

        1 Reply Last reply Reply Quote 0
        • B Offline
          Bashir
          last edited by

          Hi, I didn't use filezilla but winscp. I can try with filezilla to see if this makes a difference

          thank you

          1 Reply Last reply Reply Quote 0
          • B Offline
            Bashir
            last edited by

            Hi, I got this working. basically you don't modify boot.py but you add the code to main.py. now after rebooting my lopy it connects to my router.

            thank you

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

              @Bashir said in Connecting to home router:

              Hi, I got this working. basically you don't modify boot.py but you add the code to main.py. now after rebooting my lopy it connects to my router.

              I'm using the code to connect to my home wifi in the boot.py without any problems. I think the reason for putting it in the boot.py is so that the module doesn't fall back to default wifi settings if you make a mistake in your main.py later on which would prevent the whole main.py from being executed.

              Christian Ehlers

              1 Reply Last reply Reply Quote 0
              • O Offline
                obertuckerz112
                last edited by

                If you own a home network best wireless router, you'll sometimes need to connect to it for troubleshooting or configuration updates. How to access your router as an administrator requires knowing the router's IP address as well as the administrator login name and password. With wireless routers, you should also be aware of a few common Wi-Fi connection problems and how to solve them.

                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