Python request to picoW

 Python request to picoW

Sending clicks to picow working via Chrome browser and HTML. Want to strip back all that and get just simple python requests to work in an ap network with Picos.


Screen shot shows header (HTTP /1.1 ....) on html that python on the pc can respond to. Without that it rejects pico's response.

See below:

Here's the html :

HTTP/1.1 200 OK

Content-Type: text/csv


<!DOCTYPE html>

<html>

<head>

    <title>Raspberry Pi Pico Simple LED</title>

</head>

<body>

<p>Click the buttons to control the LED</p>

<input type="button" onclick="document.location='/ledon'" value="TURN LED ON"/>

<p></p>

<input type="button" onclick="document.location='/ledoff'" value="TURN LED OFF"/>

<p></p>

<p>The LED is **ledState**</p>

<p>The internal Pico temperature is **TEMP**</p>

</body>

</html>

 

Comments

Popular posts from this blog

Reading LittleFS file into buffer for sending

ESP32 buttons and bouncing