BBIOServer

advertisement
[Lab13] BBIOServer
Example
Exercise
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 as
ex:BBIOServer(port=8000, verbose=false,
blocking = true
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
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.
BBIOServer
 Because the default setting is in the blocking
mode, loop() will not be execute before we
using ctrl+c to terminate the server.
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.
Download