This recipe will show you how to use the ESP8266 to list all Wi-Fi networks that are available and can be connected to. We will introduce the MicroPython network library and explore how to use its objects to initialize the onboard Wi-Fi hardware.
Once these components have been set up, we can use them to run a scan for wireless networks and store the results of that scan for further inspection. This recipe can provide you with useful techniques so that you can test the Wi-Fi capabilities of your board. Usually, listing wireless networks is the first step that's needed before you can proceed and connect to them later.