Python Forum
[ESP32 Micropython]Total noob here, I don't understand why this while loop won't run.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[ESP32 Micropython]Total noob here, I don't understand why this while loop won't run.
#6
Not that I've used the libraries that you are using, but would while not station.scan(): be better? That way (in theory, least ways) you're testing for 'truthfulness'. Also, do you not have to update station.scan() in the while: loop? If not, how will any change in state be detected?
wh33t likes this post
Sig:
>>> import this

The UNIX philosophy: "Do one thing, and do it well."

"The danger of computers becoming like humans is not as great as the danger of humans becoming like computers." :~ Konrad Zuse

"Everything should be made as simple as possible, but not simpler." :~ Albert Einstein
Reply


Messages In This Thread
RE: [ESP32 Micropython]Total noob here, I don't understand why this while loop won't run. - by rob101 - Feb-28-2023, 06:27 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  micropython-stepper 1.0.3 trix 2 688 Nov-20-2023, 06:00 AM
Last Post: trix
  Read 2 Value with bleak via BLE notify from ESP32 Nietzsche 7 3,219 May-04-2023, 09:31 PM
Last Post: Nietzsche
  Noob here. Random quiz program. Using a while loop function and alot of conditionals. monkeydesu 6 1,559 Sep-07-2022, 02:01 AM
Last Post: kaega2
  Noob Alert! Wrong result using loop and if statemnent GJG 7 3,073 Dec-19-2020, 05:18 PM
Last Post: buran
  How do I understand "and" in a loop leoahum 2 1,753 Apr-24-2020, 05:57 AM
Last Post: leoahum
  Please Help , Total Noob need help to run Scrip on Windows ClicksCode 2 1,817 Mar-06-2020, 01:59 PM
Last Post: DeaD_EyE
  geting started with Micropython on ESP 32 - do i need to have a virtual environment? apollo 0 1,854 Sep-02-2019, 04:25 PM
Last Post: apollo
  Python on Linux, Total Noob to Both halcyon 4 3,208 May-27-2019, 10:40 AM
Last Post: heiner55

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020