diff options
| author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-03-30 11:56:20 +0300 |
|---|---|---|
| committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-03-30 11:56:20 +0300 |
| commit | f50d9477c1064c76cb9990418af068f915162506 (patch) | |
| tree | 4a0198562459c45f087e7b5a66b69e3c62260691 /docs/library | |
| parent | d7019d0628be21bbd1bdf66642d0443316e039f4 (diff) | |
docs: network: esp8266: .scan() is now synchronous and returns result list.
Diffstat (limited to 'docs/library')
| -rw-r--r-- | docs/library/network.rst | 12 |
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) |
