Skip to content

Commit f50d947

Browse files
committed
docs: network: esp8266: .scan() is now synchronous and returns result list.
1 parent d7019d0 commit f50d947

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

docs/library/network.rst

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -291,16 +291,12 @@ For example::
291291
value, which should be bytes object of length 6. If the function
292292
is called wihout parameters, returns the current address.
293293

294-
.. method:: wlan.scan(cb)
295-
296-
Initiate scanning for the available wireless networks.
294+
.. method:: wlan.scan()
297295

298-
Scanning is only possible if the radio is in station or station+AP mode; if
299-
called while in AP only mode, an OSError exception will be raised.
296+
Scan for the available wireless networks.
300297

301-
Once the scanning is complete, the provided callback function ``cb`` will
302-
be called once for each network found, and passed a tuple with information
303-
about that network:
298+
Scanning is only possible on STA interface. Returns list of tuples with
299+
the information about WiFi access points:
304300

305301
(ssid, bssid, channel, RSSI, authmode, hidden)
306302

0 commit comments

Comments
 (0)