tiagocoutinho / us2n

micropython bridge between UART and TCP for the ESP32
GNU General Public License v3.0
20 stars 9 forks source link

object has no attribute 'STA_IF' #1

Open vbonilla opened 6 years ago

vbonilla commented 6 years ago

Hi, I'm a newbie, just got a WiPy and want to make a serial to wifi bridge. I follow the instructions and it fails like this:

Traceback (most recent call last): File "", line 15, in File "", line 9, in start_us2n File "us2n.py", line 242, in server File "us2n.py", line 224, in config_network File "us2n.py", line 166, in config_wlan File "us2n.py", line 175, in WLANStation AttributeError: 'module' object has no attribute 'STA_IF'

If I use REPL, I get the following:

MicroPython v1.8.6-621-g17ee404e on 2017-05-25; WiPy with ESP32 Type "help()" for more information.

import network wlan = network.WLAN(network.STA_IF) Traceback (most recent call last): File "", line 1, in AttributeError: 'module' object has no attribute 'STA_IF'

I'm not able to find anything on the web on this issue.

Any help would be appreciated,

Victor

tiagocoutinho commented 2 years ago

Probably too late but here it goes:

I don't know the WiPy board. Looks like it doesn't have WLAN station capability.

prabhu277299 commented 2 years ago

AttributeError: 'function' object has no attribute 'STA'. The same error for me too. If anyone can , please help