Need help understanding Pi Pico W web server

The Raspberry Pi is a series of credit card-sized single-board computers developed in the United Kingdom by the Raspberry Pi Foundation to promote the teaching of basic computer science in schools and developing countries.

Post Reply
User avatar
/RaspberryPi
Corporate
Posts: 2449
Joined: Wed Jun 05, 2019 1:29 am

Need help understanding Pi Pico W web server

Post by /RaspberryPi »

I was following the following tutorial to learn how to set up a web server with the Pico W and control a GPIO pin from the browser: https://www.petecodes.co.uk/creating-a- ... cropython/ There are 2 parts of the code I don't understand: on lines 51 to 55 the socket object s is binded to the ip address '0.0.0.0' but why is it not the ip address of the Pi? Also at lines 76 and 81 why do we check if led_on/led_off are equal to 6? I assume this is to do with the html code of the web page? Thank you

submitted by /u/Medium_Marionberry
[link] [comments]

More...
Post Reply

Return to “Raspberry Pi Forum”