Skip to content

Commit 06deec9

Browse files
committed
docs/network: esp8266: Add wlan.ifconfig() method.
1 parent 50ef851 commit 06deec9

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
@@ -335,6 +335,14 @@ For example::
335335
point and has a valid IP address. In AP mode returns ``True`` when a
336336
station is connected. Returns ``False`` otherwise.
337337

338+
.. method:: wlan.ifconfig([(ip, subnet, gateway, dns)])
339+
340+
Get/set IP-level network interface paremeters: IP address, subnet mask,
341+
gateway and DNS server. When called with no arguments, this method returns
342+
a 4-tuple with the above information. To set the above values, pass a
343+
4-tuple with the required information. For example::
344+
345+
nic.ifconfig(('192.168.0.4', '255.255.255.0', '192.168.0.1', '8.8.8.8'))
338346

339347
.. only:: port_wipy
340348

0 commit comments

Comments
 (0)