Server
The Server
class controls the behaviour and the configuration of the FTP and telnet services running on the Pycom device. Any changes performed using this class’ methods will affect both.
Example:
Quick Usage Example
Constructors
class network.Server(id, ...)
Create a server instance, see init
for parameters of initialisation.
Methods
server.init(* , login=('micro', 'python'), timeout=300)
Init (and effectively start the server). Optionally a new user
, password
and timeout
(in seconds) can be passed.
server.deinit()
Stop the server.
server.timeout([timeout_in_seconds])
Get or set the server timeout.
server.isrunning()
Returns True
if the server is running (connected or accepting connections), False
otherwise.
Last updated