Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
c28f9df6
Commit
c28f9df6
authored
Oct 28, 2016
by
Paul Sokolovsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs/library/network: Typo fixes, consistent acronym capitalization.
parent
b9a88683
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
docs/library/network.rst
docs/library/network.rst
+12
-12
No files found.
docs/library/network.rst
View file @
c28f9df6
...
...
@@ -80,7 +80,7 @@ For example::
class CC3K
==========
This class provides a driver for CC3000
wif
i modules. Example usage::
This class provides a driver for CC3000
WiF
i modules. Example usage::
import network
nic = network.CC3K(pyb.SPI(2), pyb.Pin.board.Y5, pyb.Pin.board.Y4, pyb.Pin.board.Y3)
...
...
@@ -129,16 +129,16 @@ For example::
.. method:: cc3k.connect(ssid, key=None, \*, security=WPA2, bssid=None)
Connect to a
wif
i access point using the given SSID, and other security
Connect to a
WiF
i access point using the given SSID, and other security
parameters.
.. method:: cc3k.disconnect()
Disconnect from the
wif
i access point.
Disconnect from the
WiF
i access point.
.. method:: cc3k.isconnected()
Returns True if connected to a
wif
i access point and has a valid IP address,
Returns True if connected to a
WiF
i access point and has a valid IP address,
False otherwise.
.. method:: cc3k.ifconfig()
...
...
@@ -324,7 +324,7 @@ For example::
.. method:: wlan.isconnected()
In case of STA mode, returns ``True`` if connected to a
wif
i access
In case of STA mode, returns ``True`` if connected to a
WiF
i access
point and has a valid IP address. In AP mode returns ``True`` when a
station is connected. Returns ``False`` otherwise.
...
...
@@ -349,7 +349,7 @@ For example::
# Set WiFi access point name (formally known as ESSID) and WiFi channel
ap.config(essid='My AP', channel=11)
# Que
e
y params one by one
# Que
r
y params one by one
print(ap.config('essid'))
print(ap.config('channel'))
...
...
@@ -434,7 +434,7 @@ For example::
.. method:: wlan.connect(ssid, \*, auth=None, bssid=None, timeout=None)
Connect to a
wif
i access point using the given SSID, and other security
Connect to a
WiF
i access point using the given SSID, and other security
parameters.
- ``auth`` is a tuple with (sec, key). Security can be ``None``, ``WLAN.WEP``,
...
...
@@ -452,16 +452,16 @@ For example::
.. method:: wlan.disconnect()
Disconnect from the
wif
i access point.
Disconnect from the
WiF
i access point.
.. method:: wlan.isconnected()
In case of STA mode, returns ``True`` if connected to a
wif
i access point and has a valid IP address.
In case of STA mode, returns ``True`` if connected to a
WiF
i access point and has a valid IP address.
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)``.
With no parameters given
r
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.
...
...
@@ -499,10 +499,10 @@ For example::
Create a callback to be triggered when a WLAN event occurs during ``machine.SLEEP``
mode. Events are triggered by socket activity or by WLAN connection/disconnection.
- ``handler`` is the function that gets called when the
irq
is triggered.
- ``handler`` is the function that gets called when the
IRQ
is triggered.
- ``wake`` must be ``machine.SLEEP``.
Returns an
irq
object.
Returns an
IRQ
object.
Constants
---------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment