Server
import network
server = network.Server()
server.deinit() # disable the server
# enable the server again with new settings
server.init(login=('user', 'password'), timeout=600)Quick Usage Example
from network import Server
# init with new user, password and seconds timeout
server = Server(login=('user', 'password'), timeout=60)
server.timeout(300) # change the timeout
server.timeout() # get the timeout
server.isrunning() # check whether the server is running or notConstructors
class network.Server(id, ...)
Methods
server.init(* , login=('micro', 'python'), timeout=300)
server.deinit()
server.timeout([timeout_in_seconds])
server.isrunning()
Last updated