Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
The microdot web server framework | ||||||||
Line: 14 to 14 | ||||||||
| ||||||||
Changed: | ||||||||
< < | The picoweb exercises | |||||||
> > | The microdot exercises | |||||||
Changed: | ||||||||
< < | You can implement the same programs as shown on the WEB Server Picoweb page also with microdot. While picoweb does not provide support for web sockets, microdot does. Please git it a try, starting off with the examples provided in the github repository. | |||||||
> > | You can implement the same programs as shown on the WEB Server Picoweb page also with microdot. While picoweb does not provide support for web sockets, microdot does. Please git it a try, starting off with the examples provided in the github repository. The exercise sheet (A WEB server) is now based on microdot. | |||||||
Server side events on microdotmicrodot does not support server side events out of the box. When using server side events, your web server should first send: |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > |
The microdot web server frameworkIn contrast to picoweb, microdot supplies extensive documentation![]() ![]() In order to run the examples using the modules included in your MicroPython interpreter, you must make some minor changes to them:
The picoweb exercisesYou can implement the same programs as shown on the WEB Server Picoweb page also with microdot. While picoweb does not provide support for web sockets, microdot does. Please git it a try, starting off with the examples provided in the github repository.Server side events on microdotmicrodot does not support server side events out of the box. When using server side events, your web server should first send:"HTTP/1.0 200 OK\r\n" "Content-Type: text/event-stream\r\n" "\r\n"before sending a stream of information. I added a method send_evt_src_header() to the Microdot class, which does exactly this. After calling send_evt_src_header() you may return an iterator, which will repeatedly send information to the client (see the Fibonacci example in the documentation). -- ![]() Comments |