Page 1 of 1

Fixing the WiFi channel for a Station Object

Posted: Sat Feb 26, 2022 1:55 pm
by MMliam
Reference the following microPython instruction: netObj.config(channel=11)

If netObj is a station object , then netObj.connect(SSID, PASS), will scan all channels looking for the SSID channel. This results in a variable, and extended connect time.
A more constant and reduced connect time would be possible if the station object could be configured as a fixed channel, rather than scanning. However, if netObj is a station object, the instruction netObj.config(channel=11) throws an error ('AP required').

Does anyone know if I create an access-point object (netObjAP) and configure the channel [netObjAP.config(channel=11)], then create a station object (netObjSTA), will that force the station object to use the same channel as the configured access-point object?