Skip to content

Latest commit

 

History

History

WiFiScan

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

WiFiScan Example

This example demonstrates how to use the Wi-Fi library to scan available Wi-Fi networks and print the results.

Supported Targets

Currently, this example supports the following targets.

Supported Targets ESP32 ESP32-S2 ESP32-C3 ESP32-S3 ESP32-C6

How to Use Example

Using Arduino IDE

  • Before Compile/Verify, select the correct board: Tools -> Board.
  • Select the COM port: Tools -> Port: xxx where the xxx is the detected COM port.

Using Platform IO

  • Select the COM port: Devices or setting the upload_port option on the platformio.ini file.

Example/Log Output

Setup done
Scan start
Scan done
17 networks found
Nr | SSID            | RSSI | CH | Encryption
 1 | IoTNetwork      |  -62 |  1 | WPA2
 2 | WiFiSSID        |  -62 |  1 | WPA2-EAP
 3 | B3A7992         |  -63 |  6 | WPA+WPA2
 4 | WiFi            |  -63 |  6 | WPA3
 5 | IoTNetwork2     |  -64 | 11 | WPA2+WPA3
...

Troubleshooting

Important: Be sure you're using a good quality USB cable and you have enough power source for your project.

  • Programming Fail: If the programming/flash procedure fails, try to reduce the serial connection speed.
  • COM port not detected: Check the USB cable connection and the USB to Serial driver installation.

If the error persists, you can ask for help at the official ESP32 forum or see Contribute.

Contribute

To know how to contribute to this project, see How to contribute.

If you have any feedback or issue to report on this example/library, please open an issue or fix it by creating a new PR. Contributions are more than welcome!

Before creating a new issue, be sure to try the Troubleshooting and to check if the same issue was already created by someone else.

Resources