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



  • 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
    

Log in to reply
 

Pycom on Twitter