mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 20:20:14 +01:00
cc3200: Rename 'server' class to 'Server' for consistency.
This commit is contained in:
@@ -201,12 +201,12 @@ See :ref:`network.WLAN <network.WLAN>` and :mod:`machine`. ::
|
||||
Telnet and FTP server
|
||||
---------------------
|
||||
|
||||
See :ref:`network.server <network.server>` ::
|
||||
See :ref:`network.Server <network.Server>` ::
|
||||
|
||||
from network import server
|
||||
from network import Server
|
||||
|
||||
# init with new user, password and seconds timeout
|
||||
server = server.init(login=('user', 'password'), timeout=60)
|
||||
server = Server(login=('user', 'password'), timeout=60)
|
||||
server.timeout(300) # change the timeout
|
||||
server.timeout() # get the timeout
|
||||
server.isrunning() # check wether the server is running or not
|
||||
|
||||
Reference in New Issue
Block a user