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

    Lopy-wlan not appearing after stoppinig mqtt example

    Scheduled Pinned Locked Moved LoPy
    wlan wifiwifi resetmqttlopy-wlan
    5 Posts 2 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
      mkbenon
      last edited by

      I started going through the Lopy examples. I was able to upgrade the firmware to the latest release as of June 2017. I was able to sync files through the Atom plug in of Pymakr. I was also able to upload files on FileZilla and see output from Tera Term.

      However, after running the mqtt example from here, and getting the output as expected, I am not able to see the Lopy-wlan after stopping the mqtt example main.py application by pressing CTRL-C in Tera Term. I am therefore not able to sync or update the main.py application.

      How do I get the Lopy-wlan back?

      1 Reply Last reply Reply Quote 0
      • R Offline
        rskoniec
        last edited by rskoniec

        By default LoPy's WLAN is AP mode (WLAN.AP) and MQTT example script change that mode to Station/Client mode (WLAN.STA).

        So if you want LoPy-WLAN back you must simply change to WLAN.AP mode.

        There is also mixed mode WLAN.STA_AP.

        More info https://docs.pycom.io/pycom_esp32/library/network.WLAN.html

        The machine is working as good as it's code.

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

          @rskoniec said in Lopy-wlan not appearing after stoppinig mqtt example:

          WLAN.STA_AP

          Thank you so much! That worked!
          In my serial connection, I typed, "wlan.init(mode=WLAN.AP)" after importing network.
          Thanks!

          1 Reply Last reply Reply Quote 0
          • R Offline
            rskoniec
            last edited by rskoniec

            @mkbenon You're welcome, I just gave you some hints, glad that you manage yourself (best learning method). :o)

            Also please note that MQTT example script changes WLAN antenna mode for external (WLAN.EXT_ANT). If your LoPy setup has the external antenna - that's OK, but if not you should use default internal antenna (WLAN.INT_ANT).

            The machine is working as good as it's code.

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              mkbenon @rskoniec
              last edited by

              This post is deleted!
              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