← index #3813Issue #8407
Related · high · value 3.191
QUERY · ISSUE

ESP8285 can't use ap_if.config "can't set AP config"

openby mindforgeropened 2018-05-23updated 2022-03-05
port-esp8266

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

CANDIDATE · ISSUE

ESP32 : Setting password for AP_IF mode

closedby AmirHmZzopened 2022-03-10updated 2022-03-23

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.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied