[fixed]atomlite 1.9.7 name 'wlan' isn't defined
-
if i use the original network functions i get:
Traceback (most recent call last):
File "flow/m5cloud.py", line 82, in _exec_fun
File "<string>", line 39, in <module>
NameError: name 'wlan' isn't defined
i want to check what ip adress etc is set.all original network functions dont work. Smart config the same
-
Hello @mm-uiflow
I've tried UiFlow firmware 1.9.7 and 1.9.8 and with below commands (copied from the Python tab in flow.m5stack.com) I can print IP address etc.
from m5stack import * from m5ui import * from uiflow import * import network wlan = network.WLAN(network.STA_IF) print(wlan.ifconfig())Thanks
Felix -
@felmue said in atomlite 1.9.7 name 'wlan' isn't defined:
wlan = network.WLAN(network.STA_IF)
print(wlan.ifconfig())if i just use the python code like you it works. Maybe i should create a custom block for that
-
wlan = network.WLAN(network.STA_IF) is

i didnt used create station interface because of that wlan wasnt defined!
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