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.
#10
(Feb-28-2023, 06:27 PM)wh33t Wrote: Originally I tried while while !station.scan(): but I don't think that's valid python.
It should be

while not station.scan():
wh33t likes this post
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


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

Possibly Related Threads…
Thread Author Replies Views Last Post
  micropython-stepper 1.0.3 trix 2 626 Nov-20-2023, 06:00 AM
Last Post: trix
  Read 2 Value with bleak via BLE notify from ESP32 Nietzsche 8 2,908 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,455 Sep-07-2022, 02:01 AM
Last Post: kaega2
  Noob Alert! Wrong result using loop and if statemnent GJG 7 2,932 Dec-19-2020, 05:18 PM
Last Post: buran
  How do I understand "and" in a loop leoahum 2 1,692 Apr-24-2020, 05:57 AM
Last Post: leoahum
  Please Help , Total Noob need help to run Scrip on Windows ClicksCode 2 1,756 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,811 Sep-02-2019, 04:25 PM
Last Post: apollo
  Python on Linux, Total Noob to Both halcyon 4 3,107 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