|
| 1 | +# WiFiScan Example |
| 2 | + |
| 3 | +This example demonstrates how to use the WiFi library to scan available WiFi networks and print the results. |
| 4 | + |
| 5 | +This example shows the basic functionality of the dual antenna capability. |
| 6 | + |
| 7 | +# Supported Targets |
| 8 | + |
| 9 | +This example is compatible with the ESP32-WROOM-DA. |
| 10 | + |
| 11 | +## How to Use Example |
| 12 | + |
| 13 | +* How to install the Arduino IDE: [Install Arduino IDE](https://github.com/espressif/arduino-esp32/tree/master/docs/arduino-ide). |
| 14 | + |
| 15 | +#### Using Arduino IDE |
| 16 | + |
| 17 | +* Before Compile/Verify, select the correct board: `Tools -> Board`. |
| 18 | +* Select the COM port: `Tools -> Port: xxx` where the `xxx` is the detected COM port. |
| 19 | + |
| 20 | +#### Using Platform IO |
| 21 | + |
| 22 | +* Select the COM port: `Devices` or set the `upload_port` option on the `platformio.ini` file. |
| 23 | + |
| 24 | +## Example/Log Output |
| 25 | + |
| 26 | +``` |
| 27 | +ets Jul 29 2019 12:21:46 |
| 28 | +
|
| 29 | +rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) |
| 30 | +configsip: 0, SPIWP:0xee |
| 31 | +clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 |
| 32 | +mode:DIO, clock div:1 |
| 33 | +load:0x3fff0030,len:1412 |
| 34 | +load:0x40078000,len:13400 |
| 35 | +load:0x40080400,len:3672 |
| 36 | +entry 0x400805f8 |
| 37 | +Setup done |
| 38 | +scan start |
| 39 | +scan done |
| 40 | +17 networks found |
| 41 | +1: IoTNetwork (-62)* |
| 42 | +2: WiFiSSID (-62)* |
| 43 | +3: B3A7992 (-63)* |
| 44 | +4: WiFi (-63) |
| 45 | +5: IoTNetwork2 (-64)* |
| 46 | +... |
| 47 | +``` |
| 48 | + |
| 49 | +## Troubleshooting |
| 50 | + |
| 51 | +***Important: Be sure you're using a good quality USB cable and you have enough power source for your project.*** |
| 52 | + |
| 53 | +* **Programming Fail:** If the programming/flash procedure fails, try to reduce the serial connection speed. |
| 54 | +* **COM port not detected:** Check the USB cable connection and the USB to Serial driver installation. |
| 55 | + |
| 56 | +If the error persists, you can ask for help at the official [ESP32 forum](https://esp32.com) or see [Contribute](#contribute). |
| 57 | + |
| 58 | +## Contribute |
| 59 | + |
| 60 | +To know how to contribute to this project, see [How to contribute.](https://github.com/espressif/arduino-esp32/blob/master/CONTRIBUTING.rst) |
| 61 | + |
| 62 | +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! |
| 63 | + |
| 64 | +Before creating a new issue, be sure to try the Troubleshooting and to check if the same issue was already created by someone else. |
| 65 | + |
| 66 | +## Resources |
| 67 | + |
| 68 | +* Arduino-ESP32 Official Repository: [espressif/arduino-esp32](https://github.com/espressif/arduino-esp32) |
| 69 | +* ESP32 Datasheet: [Link to datasheet](https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf) |
| 70 | +* ESP32-WROOM-DA Datasheet: [Link to datasheet](https://www.espressif.com/sites/default/files/documentation/esp32-wroom-da_datasheet_en.pdf) |
0 commit comments