wlan.channel()
-
Hi
Can someone explain what is the purpose of wlan.channel() ? In the pycom documentation they have assigned a value of 7 to it as an example but on what basis this value is assigned? and what difference will it make ? I am using LoPy 1.0 -
Replying because this shows up on a Google search for "Pycom wlan.channel".
https://docs.pycom.io/firmwareapi/pycom/network/wlan#wlan-channel-channelwlan.channel([channel])
Get or set the channel (only applicable in AP mode).It returns (or sets) the channel to be used by the access point. (Used in either
APorSTA_APmodes).If you're using Station+AP mode (
STA_AP) I suggest you verify if wlan.channel() and the channel of the station you wish to connect to have the same channel, if they do not the access point channel will be changed (as the WLAN PHY in the ESP32 can only operate on one channel).In my use case, when a user elects to change the station the ESP32 is connected to, I warn the user that the access point will drop out if the channels do not match.
I am using L01 (LoPy OEM), firmware:
1.19.0.b4 [50f84dd-dirty].
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login