docs/library: Add network server example.

This commit is contained in:
danicampora 2015-12-16 22:34:42 +01:00
parent 0d7de08e06
commit 67a5bfc6d8

View File

@ -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
------------