diff options
| author | danicampora <daniel@wipy.io> | 2015-10-19 15:19:34 +0200 |
|---|---|---|
| committer | danicampora <daniel@wipy.io> | 2015-10-19 21:17:15 +0200 |
| commit | 36ae417c9f1417d65ca773d48a36589e300b4f71 (patch) | |
| tree | aa4960911fb560eb0df02fc6f8e39f0093723082 /docs/library/network.rst | |
| parent | 2e0cd20a1d3c6ddfaf0bb6dafc823955858334a9 (diff) | |
docs: Add wipy and network.server documentation.
Diffstat (limited to 'docs/library/network.rst')
| -rw-r--r-- | docs/library/network.rst | 45 |
1 files changed, 41 insertions, 4 deletions
diff --git a/docs/library/network.rst b/docs/library/network.rst index cee65491c..4485ff7e1 100644 --- a/docs/library/network.rst +++ b/docs/library/network.rst @@ -27,6 +27,40 @@ For example:: data = s.recv(1000) s.close() +.. only:: port_wipy + + .. _network.server: + + class server + ============ + + Constructors + ------------ + + .. class:: server(id, ...) + + Create a server instance, see ``init`` for parameters of initialization. + + Methods + ------- + + .. method:: 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. + + .. method:: server.deinit() + + Stop the server + + .. method:: server.timeout([timeout_in_seconds]) + + Get or set the server timeout. + + .. method:: server.isrunning() + + Returns ``True`` is the server is running, ``False`` otherwise. + .. only:: port_pyboard class CC3K @@ -178,13 +212,13 @@ For example:: Dump the WIZnet5x00 registers. Useful for debugging. -class WLAN -========== - .. _network.WLAN: .. only:: port_esp8266 + class WLAN + ========== + This class provides a driver for WiFi network processor in the ESP8266. Example usage:: import network @@ -258,6 +292,9 @@ class WLAN .. only:: port_wipy + class WLAN + ========== + This class provides a driver for WiFi network processor in the WiPy. Example usage:: import network @@ -282,7 +319,7 @@ class WLAN Methods ------- - .. method:: init(mode, \*, ssid, security, key, channel, antenna) + .. method:: wlan.init(mode, \*, ssid, security, key, channel, antenna) Set or get the WiFi network processor configuration. |
