An open API service indexing awesome lists of open source software.

https://github.com/wokwi/esp32-idf-hello-wifi

ESP32 IDF WiFi Example for VSCode + Wokwi
https://github.com/wokwi/esp32-idf-hello-wifi

Last synced: 2 months ago
JSON representation

ESP32 IDF WiFi Example for VSCode + Wokwi

Awesome Lists containing this project

README

        

# ESP IDF Hello WiFi

Shows how to connect to the Wokwi-GUEST WiFi using the ESP-IDF framework.

## Building

We recommend using the [ESP-IDF VSCode extension](https://marketplace.visualstudio.com/items?itemName=espressif.esp-idf-extension) to build the project. Alternatively, you can use the command line: `idf.py build`.

## Simulation

To simulate this project, install [Wokwi for VS Code](https://marketplace.visualstudio.com/items?itemName=wokwi.wokwi-vscode). Open the project directory in Visual Studio Code, press **F1** and select "Wokwi: Start Simulator".

## Debugging

The project is already set up for debugging. To debug the project, first start Wokwi in debug mode (press **F1** and select "Wokwi: Start Simulator and Wait for Debugger"). Then press **F5** to start the debugger. You can set breakpoints, step through the code, and inspect variables.

The debugger is configured to use TCP port 3333. If this port is already in use on your computer, you can change it in the `.vscode/launch.json` file (`miDebuggerServerAddress`) and in `wokwi.toml` (`gdbServerPort`).

Note that the debugger setup requires the ESP-IDF extension to be installed in VS Code. If you don't have the ESP-IDF extension, you can manually set `miDebuggerServerAddress` in `.vscode/launch.json` to point to your local installation of the `xtensa-esp32-elf-gdb` debugger (it's usually installed in the esp tools directory, under `tools/xtensa-esp-elf-gdb//xtensa-esp-elf-gdb/bin`).