← index #4158Issue #5763
Off-topic · high · value 5.446
QUERY · ISSUE

ESP32: WebREPL: network.WLAN(network.AP_IF) is not set to active on boot.

openby MrSurlyopened 2018-09-17updated 2022-03-30
port-esp32

The AP is set up, but is not set to active on boot. Per the documentation, this should "just work"?

I can connect to the device using the serial REPL, and issue:

import network
network.WLAN(network.AP_IF).active(True)

To enable the AP.

CANDIDATE · ISSUE

WLAN.connect causes the board to need to be reflashed

openby zurgegopened 2020-03-16updated 2020-05-21
port-esp32

Hello,
I have been attempting to create the network NET_AP_ESP32 by connected to my network and entering it's password, here is my understanding of it (And, no my wifi password is not password) :

import network

wlan = network.WLAN(network.STA_IF)
wlan.active(True)
wlan.scan()
wlan.connect('Wifi','password')

ap = network.WLAN(network.AP_IF)
ap.config(essid='NET_AP_ESP32')
ap.config(max_clients=10)
ap.active(True)

My network security is WPA2 Personal and my network name starts with a capital letter in case it helps.

But then it always disconnects from the wifi with code 15 then 205 and pressing ctrl+c doesn't terminate the code. ampy says it can't enter raw repl and I'm forced to reset (reflash) the board.

Any suggestions?
Thanks in advance!

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