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.isconnected() in AP mode - still not working

    Scheduled Pinned Locked Moved Support & Troubleshooting
    isconnectedap modewlan
    4 Posts 3 Posters 601 Views 3 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.
    • R Offline
      Rustydusty
      last edited by

      I am experiencing the same problem as was posted before:
      wlan.isconnected() in AP mode (2 years ago)
      wlan.isconnected() always False in AP mode. (7 months ago)
      wlan.isconnected() not working in AP mode (21 days ago)

      Here is what I am doing with my W01 module (connected to REPL via serial) after power on:

      >>> # WLAN was disabled by wlan.deinit() before
      >>>
      >>>
      >>> from network import WLAN
      >>> wlan=WLAN(mode=WLAN.AP, ssid='mywlan')
      >>> # 'mywlan' appears on the list of available networks of the PC
      >>> wlan.isconnected()
      False
      >>> # this is correct since not connected yet
      >>> # now I connect with PC to 'mywlan'
      >>> wlan.isconnected()
      False
      >>> # this is INCORRECT since PC is connected to 'mywlan'
      >>>
      >>>
      >>> import uos
      >>> uos.uname()
      (sysname='WiPy', nodename='WiPy', release='1.18.0.r1', version='v1.8.6-849-9569a73 on 2018-07-20', machine='WiPy with ESP32', pybytes='0.9.0')
      >>>
      

      What could be wrong with this?
      Any other way to detect connected devices?
      @dan: there is no further code in my case
      @Paul Thorton: the PC is indeed connected, it is possible to operate via FileZilla or PuTTY

      Thank you in advance for help!
      Happy New Year!

      1 Reply Last reply Reply Quote 0
      • mfalkviddM Offline
        mfalkvidd
        last edited by mfalkvidd

        Not sure if I'm looking at the right code, but it looks like the implementation for esp32 lacks code for AP mode. Compare with esp8266 implementation.

        1 Reply Last reply Reply Quote 0
        • P Offline
          Paul Thornton
          last edited by Paul Thornton

          Looks like @mfalkvidd may be correct. Ill raise issue this in the next standup

          1 Reply Last reply Reply Quote 1
          • R Offline
            Rustydusty
            last edited by

            @mfalkvidd, @Paul-Thornton
            thank you for taking care of this!
            I am looking forward to a solution as soon as possible. Not only my project strongly depends on this function as it is a rather basic functionality. At least, I could not find any alternative way of detecting connected devices in AP mode.

            1 Reply Last reply Reply Quote 0

            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