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

    Issues with wlan.isconnected() not returning True in 1.20.0.rc11

    Scheduled Pinned Locked Moved Issues & Bugs
    2 Posts 2 Posters 190 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.
    • A Offline
      aidanlok
      last edited by

      I am using a LoPy4 running 1.20.0.rc11 where the bug fix list includes:
      • Fix wlan.isconnected not returning True when station is connected in AP mode Issue #244

      However, I attempt to run plan.isconnected() in AP mode and the LoPy still does not return True despite two computers being connected. Is anyone else having issues or am I missing something here?

      Code:

          def performSpeedtest(self):
              wlan = WLAN(mode=WLAN.STA)
              wlan = WLAN()
              wlan.init()
              # while wlan.isconnected() == False:
              #     print("doing cycle")
              #     if wlan.isconnected() == True:
              #         break
              if wlan.isconnected() == True:
                  uiperf3.client(self.IPForiPerf)
                  print("do them tests\n\n\n")
                  return
              else:
                  return
      
      1 Reply Last reply Reply Quote 0
      • B Offline
        bitvijays
        last edited by

        Hey @aidanlok Hope you are doing well. Just curious, were you able to perform speedtest? Also, how did you installed the uiperf3 ? Copy uiperf3.py in the lib folder?

        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