Close

Small code update, and added a website example for XMLHttpRequest

A project log for Raspberry Pi Pico W - Super simple webserver

A super simple webserver written in MicroPython that serves up simple webpages and files from a pico w

sciencedude1990sciencedude1990 01/20/2024 at 17:420 Comments

I updated the code on github so that it will give separate error messages.  Now, it will give an error if the filename is bad, and it will give a separate error if the pico can't open and send the file (usually caused when the file is too large).

I also added "led_website.html".  This demonstrates how to use XMLHttpRequest to set the LED on the raspberry pi pico, and has a timer that automatically queries the status of the LED to display on the website without having to refresh the page.

Discussions