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
- Host: GitHub
- URL: https://github.com/wokwi/esp32-idf-hello-wifi
- Owner: wokwi
- License: mit
- Created: 2022-12-06T09:03:14.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-14T13:22:55.000Z (8 months ago)
- Last Synced: 2025-03-27T22:01:40.567Z (3 months ago)
- Language: C
- Size: 22.5 KB
- Stars: 17
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`).