Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    wlan.channel()

    Scheduled Pinned Locked Moved LoPy
    lopywlan.channel
    2 Posts 2 Posters 542 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F Offline
      fasih011
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • N Offline
        nevercast
        last edited by nevercast

        Replying because this shows up on a Google search for "Pycom wlan.channel".
        https://docs.pycom.io/firmwareapi/pycom/network/wlan#wlan-channel-channel

        wlan.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 AP or STA_AP modes).

        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].

        1 Reply Last reply Reply Quote 1

        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
        • 1 / 1
        • First post
          Last post

        Pycom on Twitter

        Pycom