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

network configuration bug in "esp8266-20170108-v1.8.7.bin"

closedby anpaul0615opened 2017-03-07updated 2017-03-15

I found a bug about network configuration in "esp8266-20170108-v1.8.7.bin".
Please read below code.

import network
softap = network.WLAN(network.AP_IF)

softap.active(True)  // I can't connect this ap 'MicroPython-xxxxxx'

softap.config('password')  //error

softap.config(password='123456789')  //now I can connect this ap

What is wrong? just firmware bug?

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