← index #9662Issue #3177
Off-topic · high · value 1.372
QUERY · ISSUE

ESP8266 - Allow `network.STA_IF` to `connect` on specific channel

openby JayFoxRoxopened 2022-10-17updated 2025-09-30
port-esp8266

Same request as in https://forum.micropython.org/viewtopic.php?f=16&t=12065
Also see https://www.bakke.online/index.php/2017/06/24/esp8266-wifi-power-reduction-avoiding-network-scan/

I'd also like to do this for power saving on a battery powered device.

I believe micropython isn't able to do this yet, because it's missing from connect:

(call does not allow channel as kwarg)

https://github.com/micropython/micropython/blob/89b320737652829edbab921e86d7ad3962d86d9e/ports/esp8266/modnetwork.c#L111-L117

Additionally, it's also not possible to set this from esp_config:

(setter only for AP, not STA):

https://github.com/micropython/micropython/blob/89b320737652829edbab921e86d7ad3962d86d9e/ports/esp8266/modnetwork.c#L395-L399

(getter only for AP, not STA):

https://github.com/micropython/micropython/blob/89b320737652829edbab921e86d7ad3962d86d9e/ports/esp8266/modnetwork.c#L465-L468

CANDIDATE · ISSUE

esp8266: Allow forwarding between AP and STA interfaces

openby jadolgopened 2017-06-29updated 2025-04-07
enhancementport-esp8266

I oppened a question some days ago about it and have not found anything anywhere https://stackoverflow.com/questions/44781305/micropython-nat-between-interfaces-on-esp8266
turns out that I can connect to a hotspot and act as a hotspot at the same time, but forwarding among interfaces is not permitted. I've being redirected to other software like NodeMCU but I would really like to use Micropython (and not having to compile ti myself)

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