Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
micropython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
card10
micropython
Commits
7c61249a
Commit
7c61249a
authored
9 years ago
by
Bill Owens
Committed by
Paul Sokolovsky
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
esp8266: Updated documentation for scan() and moved to network
parent
686516f9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/library/esp.rst
+0
-8
0 additions, 8 deletions
docs/library/esp.rst
docs/library/network.rst
+25
-0
25 additions, 0 deletions
docs/library/network.rst
with
25 additions
and
8 deletions
docs/library/esp.rst
+
0
−
8
View file @
7c61249a
...
...
@@ -10,14 +10,6 @@ The ``esp`` module contains specific functions related to the ESP8266 module.
Functions
---------
.. function:: scan(cb)
Initiate scanning for the available wireless networks.
Once the scanning is complete, the provided callback function ``cb`` will
be called once for each network found, and passed a tuple with information
about that network.
.. function:: status()
Return the current status of the wireless connection.
...
...
This diff is collapsed.
Click to expand it.
docs/library/network.rst
+
25
−
0
View file @
7c61249a
...
...
@@ -210,6 +210,31 @@ For example::
Disconnect from the currently connected wireless network.
.. method:: wlan.scan(cb)
Initiate scanning for the available wireless networks.
Scanning is only possible if the radio is in station or station+AP mode; if
called while in AP only mode, an OSError exception will be raised.
Once the scanning is complete, the provided callback function ``cb`` will
be called once for each network found, and passed a tuple with information
about that network:
(ssid, bssid, channel, RSSI, authmode, hidden)
There are five values for authmode:
* 0 -- open
* 1 -- WEP
* 2 -- WPA-PSK
* 3 -- WPA2-PSK
* 4 -- WPA/WPA2-PSK
and two for hidden:
* 0 -- visible
* 1 -- hidden
.. only:: port_wipy
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment