Feb-28-2023, 06:27 PM
(Feb-28-2023, 06:25 PM)rob101 Wrote: Not that I've used the libraries that you are using, but wouldif not station.scan():
be better? That way (in theory, least ways) you're testing for 'truthfulness'. Also, do you not have to updatestation.scan()
in thewhile:
loop? If not, how will any change in state be detected?
Originally I tried while while !station.scan(): but I don't think that's valid python. I presumed wifi.scan() "forked" out into the background, and eventually wifi.scan() would return something. This seems to be pretty intermittent so maybe you are right, I have to continually update and check to see.