summaryrefslogtreecommitdiff
path: root/docs/library/network.rst
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-03-30 11:56:20 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-03-30 11:56:20 +0300
commitf50d9477c1064c76cb9990418af068f915162506 (patch)
tree4a0198562459c45f087e7b5a66b69e3c62260691 /docs/library/network.rst
parentd7019d0628be21bbd1bdf66642d0443316e039f4 (diff)
docs: network: esp8266: .scan() is now synchronous and returns result list.
Diffstat (limited to 'docs/library/network.rst')
-rw-r--r--docs/library/network.rst12
1 files changed, 4 insertions, 8 deletions
diff --git a/docs/library/network.rst b/docs/library/network.rst
index 6bcff3311..49e7e53bf 100644
--- a/docs/library/network.rst
+++ b/docs/library/network.rst
@@ -291,16 +291,12 @@ For example::
value, which should be bytes object of length 6. If the function
is called wihout parameters, returns the current address.
- .. method:: wlan.scan(cb)
-
- Initiate scanning for the available wireless networks.
+ .. method:: wlan.scan()
- 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.
+ Scan 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:
+ Scanning is only possible on STA interface. Returns list of tuples with
+ the information about WiFi access points:
(ssid, bssid, channel, RSSI, authmode, hidden)