docs/library: Add network server example.
This commit is contained in:
parent
0d7de08e06
commit
67a5bfc6d8
|
@ -38,6 +38,14 @@ For example::
|
|||
services running on the WiPy. Any changes performed using this class' methods will
|
||||
affect both.
|
||||
|
||||
Example::
|
||||
|
||||
import network
|
||||
s = network.server()
|
||||
s.deinit() # disable the server
|
||||
# enable the server again with new settings
|
||||
s.init(login=('user', 'password'), timeout=600)
|
||||
|
||||
Constructors
|
||||
------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue