ESP8285 can't use ap_if.config "can't set AP config"
i did the following
import network
ap_if = network.WLAN(network.AP_IF)
ap_if.active(False)
ap_if.config(essid="someID", password="somePassword")
but i always get "can't set AP config", no matter what parameter i try to use
MicroPython v1.9.4-8-ga9a3caad0 on 2018-05-11; ESP module with ESP8266
flashed on an plain ES8285 Module
listdir is also doing funky stuff on this module, getting a crap ton of " '\x00\x00\x00\x00\x00\x00\x00\x00.\x00\x00\x00'," as answer + the folders and file that icreated for a test
ESP32 : Setting password for AP_IF mode
I'm trying to set password for AP_IF mode with these lines of code :
>>> import machine
>>> ap_wlan.active(True)
True
>>> ap_wlan.config(essid="EspAP", password="mytestpassword1234")
>>> ap_wlan.config("password")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: unknown config param
According to the source code, there should be a config param called password :
https://github.com/micropython/micropython/blob/da4b38e7562dfa451917f9d7f344a7f26de8c7bd/ports/esp32/network_wlan.c#L432-L440
But why I cannot use it? Am I doing it in a right way?
I should mention that I'm using this release which is micropython 1.18 on a Wemos D1 R32 board which uses ESP32-WROOM-32.