Tags:
tag this topic
create new tag
view all tags
---+ The WEB server When writing a WEB server for your sensors and actuators you have 3 possible options: * Write the WEB server yourself from scratch: [[Basic WEB server]] * Base your Web Server on picoweb: [[WEB Server Picoweb]] * Base your WEB Server on microdot: [[Web Server Microdot]] When writing a simplistic WEB Server, serving only static HTML pages then you may well write it yourself, making use of the uscocket library in !MicroPython. If you want to use more complex pages e.g. using templates or you need dynamic pages e.g. to display incoming data from your sensors, then it may be easier to rely on work other people have prepared for you. On !MicroPython two options are available: * [[https://github.com/pfalcon/picoweb][picoweb: ]]a very small WEB server sufficient for our purposes. Picoweb comes with many example programs demonstrating all the features of the WEB server. These examples are extremely useful when trying to implement your own code. You should have a close look at them and try them one by one. Only small modifications are needed to run them on our system. * [[https://github.com/miguelgrinberg/microdot][microdot ]]is very similar to picoweb, but offers documentation in addition. Both frameworks are already included in your !MicroPython interpreter. -- %USERSIG{UliRaich - 2020-06-08}% ---++ Comments %COMMENT%
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r2
<
r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r2 - 2022-11-12
-
UliRaich
Home
Site map
AFNOG web
Embedded_Systems web
IoT_Course_English web
IoT_Course_French web
Main web
Sandbox web
TWiki web
IoT_Course_English Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Register User
E
dit
A
ttach
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback