summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-04-28 00:10:29 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-04-28 00:10:29 +0300
commit06deec9d35957a8c358259bfb949765d60c8b560 (patch)
treea4aa08122a9c0c17c897b0c894d8cf663aa8bbcc /docs
parent50ef851bee4e006e576f1d6b3ce55f7e726e3e9b (diff)
docs/network: esp8266: Add wlan.ifconfig() method.
Diffstat (limited to 'docs')
-rw-r--r--docs/library/network.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/library/network.rst b/docs/library/network.rst
index 7c074941e..6375410d1 100644
--- a/docs/library/network.rst
+++ b/docs/library/network.rst
@@ -335,6 +335,14 @@ For example::
point and has a valid IP address. In AP mode returns ``True`` when a
station is connected. Returns ``False`` otherwise.
+ .. method:: wlan.ifconfig([(ip, subnet, gateway, dns)])
+
+ Get/set IP-level network interface paremeters: IP address, subnet mask,
+ gateway and DNS server. When called with no arguments, this method returns
+ a 4-tuple with the above information. To set the above values, pass a
+ 4-tuple with the required information. For example::
+
+ nic.ifconfig(('192.168.0.4', '255.255.255.0', '192.168.0.1', '8.8.8.8'))
.. only:: port_wipy