Skip to content

Commit 67a5bfc

Browse files
author
danicampora
committed
docs/library: Add network server example.
1 parent 0d7de08 commit 67a5bfc

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

docs/library/network.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ For example::
3838
services running on the WiPy. Any changes performed using this class' methods will
3939
affect both.
4040

41+
Example::
42+
43+
import network
44+
s = network.server()
45+
s.deinit() # disable the server
46+
# enable the server again with new settings
47+
s.init(login=('user', 'password'), timeout=600)
48+
4149
Constructors
4250
------------
4351

0 commit comments

Comments
 (0)