Example Exercise [Lab13] BBIOServer. BBIOServer In the beginning, import the library bbio as usual...
-
Upload
clifford-glenn -
Category
Documents
-
view
213 -
download
0
Transcript of Example Exercise [Lab13] BBIOServer. BBIOServer In the beginning, import the library bbio as usual...
![Page 1: Example Exercise [Lab13] BBIOServer. BBIOServer In the beginning, import the library bbio as usual and the BBIOServer. The BBIOServer provides.](https://reader036.fdocuments.in/reader036/viewer/2022081908/56649eac5503460f94bb2c49/html5/thumbnails/1.jpg)
Example
Exercise
[Lab13] BBIOServer
![Page 2: Example Exercise [Lab13] BBIOServer. BBIOServer In the beginning, import the library bbio as usual and the BBIOServer. The BBIOServer provides.](https://reader036.fdocuments.in/reader036/viewer/2022081908/56649eac5503460f94bb2c49/html5/thumbnails/2.jpg)
BBIOServer
In the beginning, import the library bbio as usual and the BBIOServer.
The BBIOServer provides definition for an uniform website.
BBIOServer() has three option asex:BBIOServer(port=8000, verbose=false, blocking = true
![Page 3: Example Exercise [Lab13] BBIOServer. BBIOServer In the beginning, import the library bbio as usual and the BBIOServer. The BBIOServer provides.](https://reader036.fdocuments.in/reader036/viewer/2022081908/56649eac5503460f94bb2c49/html5/thumbnails/3.jpg)
BBIOServer
In the setup(), we use the function defined in BBIOServer to form a webpage.
add_text(“string”) for information on your webpage.
add_entry() for creat an input blank on webpage
![Page 4: Example Exercise [Lab13] BBIOServer. BBIOServer In the beginning, import the library bbio as usual and the BBIOServer. The BBIOServer provides.](https://reader036.fdocuments.in/reader036/viewer/2022081908/56649eac5503460f94bb2c49/html5/thumbnails/4.jpg)
BBIOServer
add_heading(“string”) for creating a title. add_button() for a button. add_monitor() for displaying info on the
page. server.start in the end of setup() is to
launch those page online.
![Page 5: Example Exercise [Lab13] BBIOServer. BBIOServer In the beginning, import the library bbio as usual and the BBIOServer. The BBIOServer provides.](https://reader036.fdocuments.in/reader036/viewer/2022081908/56649eac5503460f94bb2c49/html5/thumbnails/5.jpg)
BBIOServer
Because the default setting is in the blocking mode, loop() will not be execute before we using ctrl+c to terminate the server.
![Page 6: Example Exercise [Lab13] BBIOServer. BBIOServer In the beginning, import the library bbio as usual and the BBIOServer. The BBIOServer provides.](https://reader036.fdocuments.in/reader036/viewer/2022081908/56649eac5503460f94bb2c49/html5/thumbnails/6.jpg)
Exercise
Try to connect your bbio website.
Try to change the port number to 720.
Try to make a page with your id on it and take it as your home page.