Replies: 1 comment 2 replies
-
Please add the port and firmware version you use. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I can code:
from time import sleep
, orfrom machine import Pin
without issues.However when I code:
from network import WLAN
, it throws the error "network not defined" even though it's listed in the modules the same as 'time' or 'machine'.I need to code:
import network
to resolve the error.The Network module list:
Is it because I also referenced STA_IF that caused the error to refer to the entire module as being undefined?
Had I simply used the value '0" instead of STA_IF that would have also resolved the error?
MM
Beta Was this translation helpful? Give feedback.
All reactions