Project Configuration
After installing the plugin and activating the license as per the installation instructions, configure your project for Wokwi use.
For project simulation on Wokwi, create these two files in the project's root directory:
wokwi.toml
: This configuration file instructs Wokwi on project execution.diagram.json
: This diagram file outlines the circuit.
wokwi.toml
The wokwi.toml
file is usually placed in the project's root directory. To store it in a different location, specify the new path in the simulator settings.
A basic wokwi.toml
example:
The elf
and firmware
fields in wokwi.toml
are paths relative to the wokwi.toml
file's location. For additional details, refer to the official Wokwi configuration docs.
diagram.json
To obtain a diagram file for your project, you can copy it from an existing project on wokwi.com. For example, if your project involves an ESP32, you can copy the diagram.json
contents from the default ESP32 template.