mp 1.6 , ESP8266 - cannot set STA config

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
c0ax
Posts: 2
Joined: Wed Mar 02, 2016 9:11 am

mp 1.6 , ESP8266 - cannot set STA config

Post by c0ax » Wed Mar 02, 2016 9:16 am

Hi, i just tested this:
>>> import network
>>> nic = network.WLAN()
>>> nic.connect('ssid', 'password')

(ssid and password changed offcourse)
And i cannot connect, this is the reply:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: Cannot set STA config

i see the "default" network AP from the ESP, SSID" ESP_008510" on current board. i tried

>>> nic.disconnect()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: Cannot disconnect from AP

and:

>>> print(nic.isconnected())
False

tested with two ESP12 boards.
any ideas? i compiled the 1.6 ESP8266 cloned yesterday.

rgds
Tomas

pfalcon
Posts: 1155
Joined: Fri Feb 28, 2014 2:05 pm

Re: mp 1.6 , ESP8266 - cannot set STA config

Post by pfalcon » Wed Mar 02, 2016 9:47 am

There're many issues with the current ESP8266 port, which will be addressed by the Kickstarter campaign: http://forum.micropython.org/viewtopic.php?f=8&t=1338
Awesome MicroPython list
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/

c0ax
Posts: 2
Joined: Wed Mar 02, 2016 9:11 am

Re: mp 1.6 , ESP8266 - cannot set STA config

Post by c0ax » Wed Mar 02, 2016 12:16 pm

i am backing that campaign, i didnt read the "we will release source when campaign ends" part :)
i'll switch to CC3200 until it's released.

Post Reply