38. Lektion: Webserver
Webserver
Wlan einrichten
import network
# Wlan Verbindung herstellen
wlan = network.WLAN(network.STA_IF)
wlan.active(True)
if not wlan.isconnected():
print('connecting to network...')
wlan.connect('ssid', 'key')
while not wlan.isconnected():
pass
print('network config:', wlan.ifconfig())
Das Webserver Packet phew
Für den Raspberry Pi Pico W gibt es ein Packet, das alles enthält, was zur Einrichtung eines Webservers auf dem Pico erforderlich ist. Es heißt "phew" und ist von Github unter https://github.com/pimoroni/phew zu beziehen. Das Archiv muss entpackt und dann das Unterverzeichnis "phew" ins Filesystem des Pico kopiert werden.
Lager
- 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