Lopy-wlan not appearing after stoppinig mqtt example
-
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?
-
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.APmode.There is also mixed mode
WLAN.STA_AP.More info https://docs.pycom.io/pycom_esp32/library/network.WLAN.html
-
@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! -
@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). -
This post is deleted!
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