Example Exercise [Lab13] BBIOServer. BBIOServer In the beginning, import the library bbio as usual...

6
Example Exercise [Lab13] BBIOServer

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.

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.

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.

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.

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.

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.

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.