[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!