MicroPython v1.8.7-7-gb5a1a20a3 on 2017-01-09; ESP module with ESP8266
As per help(), ap_if.config(essid="<AP_NAME>", authmode=network.AUTH_WPA_WPA2_PSK, password="<password>")
import network
>>> ap = network.WLAN(network.AP_IF)
>>> ap.active()
True
>>> ap.config(essid='uPY_12n', authmode=network.AUTH_WPA_WPA2_PSK, password="uPy1234")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: can't set AP config
>>> ap.ifconfig()
('192.168.4.1', '255.255.255.0', '192.168.4.1', '192.168.254.254')
>>> ap.config(essid = 'uPY_12n')
>>> print(ap.config('essid'))
uPY_12n
>>> ap.config(authmode = network.AUTH_WPA_WPA2_PSK)
>>> print(ap.config('authmode'))
4
>>> ap.config(password='uPy1234')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: can't set AP config
>>> ap.config(password="uPy1234")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: can't set AP config
>>> print(ap.config('password'))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: unknown config param
>>> print(ap.config("password"))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: unknown config param
>>>
I can not change the default ap wifi password nor could I even print the default micropythoN wifi password
I tried on the latest stable build and it's also the same. What am I doing wrong? My esp module is a ESP-12N from DOIT owever I also tried it on a D1 mini with an ESP-12E and the results are the same.
Unable to change ap wifi password
Re: Unable to change ap wifi password
It seems your password is to short. If you use "uPy12345" it will work.
Re: Unable to change ap wifi password
Yes! Thank you! Changing the password length worked
However print(ap.config('password')) still not working
However print(ap.config('password')) still not working
Re: Unable to change ap wifi password
Thanks, suggestions on this post worked for me too. http://tricksbite.com/download-pldt-wif ... acker-apk/