← index #3813Issue #12262
Related · high · value 3.820
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

OSError: can't set AP config on ESP8266

closedby inovatoriusopened 2023-08-19updated 2023-08-21
bug

Good day!

Error is raised under these circumstances:

  1. Enable STA interface and connect to AP.
  2. Enable AP interface and set AP channel via config(channel=13)
  3. OSError: can't set AP config

Error is not raised when STA is not connected to AP. Currently, I do not have a shorter version of my code that can reliably reproduce this error.

Nonetheless, should this error be handled inside MicroPython firmware or user should take care of it via try/except?

MicroPython 1.20.0 on ESP2866.

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