From 67a5bfc6d8b78de683e5035ed39f4a998e150f9c Mon Sep 17 00:00:00 2001 From: danicampora Date: Wed, 16 Dec 2015 22:34:42 +0100 Subject: [PATCH] docs/library: Add network server example. --- docs/library/network.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/library/network.rst b/docs/library/network.rst index f60de7da64..272d8dcb32 100644 --- a/docs/library/network.rst +++ b/docs/library/network.rst @@ -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 ------------