diff options
author | danicampora <daniel@wipy.io> | 2015-10-20 15:04:55 +0200 |
---|---|---|
committer | danicampora <daniel@wipy.io> | 2015-10-21 15:30:56 +0200 |
commit | 04db848dc7c7356a38f809b5efdd4699a41aa54f (patch) | |
tree | 7fb8a5ec866788d13e25ef313b4431c27e756cba /docs/library/network.rst | |
parent | 4b630c452d238895385fb044e91b3496359a8dde (diff) | |
download | micropython-04db848dc7c7356a38f809b5efdd4699a41aa54f.tar.gz micropython-04db848dc7c7356a38f809b5efdd4699a41aa54f.zip |
docs: Add usocket and ussl modules' documentation.
Diffstat (limited to 'docs/library/network.rst')
-rw-r--r-- | docs/library/network.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/library/network.rst b/docs/library/network.rst index c0115864d3..0b9acf6423 100644 --- a/docs/library/network.rst +++ b/docs/library/network.rst @@ -378,16 +378,16 @@ For example:: .. method:: wlan.isconnected() In case of STA mode, returns ``True`` if connected to a wifi access point and has a valid IP address. - In AP mode returns ``True`` when a station is connected. Returns ``False`` otherwise. + In AP mode returns ``True`` when a station is connected, ``False`` otherwise. .. method:: wlan.ifconfig(if_id=0, config=['dhcp' or configtuple]) With no parameters given eturns a 4-tuple of ``(ip, subnet_mask, gateway, DNS_server)``. - + if ``'dhcp'`` is passed as a parameter then the DHCP client is enabled and the IP params are negotiated with the AP. - - if the 4-tuple config is given then a static IP is configured. For example:: + + If the 4-tuple config is given then a static IP is configured. For instance:: wlan.ifconfig(config=('192.168.0.4', '255.255.255.0', '192.168.0.1', '8.8.8.8')) @@ -423,7 +423,7 @@ For example:: - ``handler`` is the function that gets called when the irq is triggered. - ``wake`` must be ``machine.SLEEP``. - Returns a irq object. + Returns an irq object. Constants --------- |