raspberrypi / pico-micropython-examples

Examples to accompany the "Raspberry Pi Pico Python SDK" book.
BSD 3-Clause "New" or "Revised" License
1k stars 227 forks source link

webserver.py NameError: name 'stateis' isn't defined #70

Closed hairem closed 1 year ago

hairem commented 1 year ago

I copied and pasted the code from the webserver.py into my pico w and got this error.

Traceback (most recent call last):
  File "<stdin>", line 72, in <module>
NameError: name 'stateis' isn't defined

if I comment out this line and line 76 I get a different error

Traceback (most recent call last):
  File "<stdin>", line 43, in <module>
OSError: [Errno 98] EADDRINUSE

Is there any way to fix this?

aallan commented 1 year ago

This sounds like an issue better suited to the forums where you'll probably get more help than we can offer here.