Search found 4 matches
- Sat Sep 10, 2022 10:58 am
- Forum: Raspberry Pi microcontroller boards
- Topic: Pico W server stops after a while loop
- Replies: 6
- Views: 84707
Re: Pico W server stops after a while loop
thanks for the tip Dave. It does have an except block, however I dont have enough experience in python especially with the server stuff. Here is the except block: except OSError as e: cl.close() print('Connection closed') And here is the whole script file for webserver: import rp2 import network imp...
- Sun Sep 04, 2022 11:31 am
- Forum: Raspberry Pi microcontroller boards
- Topic: Pico W server stops after a while loop
- Replies: 6
- Views: 84707
Re: Pico W server stops after a while loop
here is the script that i cannot find a way to fix it. while True: try: cl, addr = s.accept() print('Client connected from', addr) r = cl.recv(1024) r = str(r) print('request', r) strip = Neopixel(numpix, 0, 10, "GRB") brown = strip.colorHSV(165, 42, 42) orange = strip.colorHSV(255, 165, 0) pink = s...
- Mon Aug 29, 2022 12:24 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Pico W server stops after a while loop
- Replies: 6
- Views: 84707
Re: Pico W server stops after a while loop
Thanks Jimmo for the response. I saw this very late:(. By the frame you mean at the end of the loop that I want it to continue until I say not to do so? I remember I have tried that but not sure 100%. Will try that and post an update.
- Wed Aug 24, 2022 12:38 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Pico W server stops after a while loop
- Replies: 6
- Views: 84707
Pico W server stops after a while loop
Hi all! Fairly a newbie here:). I am doing a project where I want to control bunch of neopixels from Pico W via making requests from an android app. It works well for some basic neopixel lighting modes such as fixed single color or some sweep effects. However I want to add some modes that loops unti...