38. Lektion: Webserver
Webserver
Wlan einrichten
import network
wlan = network.WLAN(network.STA_IF)
wlan.active(True)
wlan.ifconfig()
('0.0.0.0', '255.255.255.0', '192.168.0.1', '8.8.8.8')
wlan.connect('Attraktor', 'blafablafa')
wlan.isconnected()
True
wlan.ifconfig()[0]
Das Webserver Packet phew
Für den Raspberry Pi Pico W gibt es ein Packet, das alles enthält, was zur Einrichtung eines Webservers aif dem Oco erforderlich ist. Es heisst "phew" und ist von Github unter [1] zu beziehen.
- Webserver
- https://github.com/jczic/MicroWebSrv2
- Raspberry Pi Pico
- MicroWebSrv - geht nicht!
- Andere Links mit Sockets:
- http://www.doctormonk.com/2022/09/a-better-web-server-for-raspberry-pi.html
- https://github.com/miguelgrinberg/microdot
- https://microdot.readthedocs.io/en/latest/intro.html
- https://wellys.com/posts/rp2040_microphyton_webserver/
- https://github.com/miguelgrinberg/microdot
- https://www.rasppishop.de/pico-w-als-webserver
- https://www.elektronik-kompendium.de/sites/raspberry-pi/2707131.htm
- https://www.youtube.com/watch?v=RN2k_0mrKxI
- https://www.youtube.com/watch?v=Me7VM2z3_f8
- https://draeger-it.blog/raspberry-pi-pico-w-programmieren-eines-webservers/
- https://hackaday.io/project/189675-raspberry-pi-pico-w-super-simple-webserver
- https://github.com/sciencedude1990/MicropythonPicoWebServer