ESP8266 - Allow `network.STA_IF` to `connect` on specific channel
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
esp8266: Allow forwarding between AP and STA interfaces
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)