ESP32 web server example: control 2 LEDs from a web page hosted on the ESP32.
Use Wokwi for Visual Studio Code to simulate this project.
This is a PlatformIO project. To build it, install PlatformIO, and then run the following command:
pio run
To simulate this project, install Wokwi for VS Code. Open the project directory in Visual Studio Code, press F1 and select "Wokwi: Start Simulator".
Once the simulation is running, open http://localhost:8180 in your web browser to interact with the simulated HTTP server.
The firmware stores measurement sessions as binary .am1 files (header plus
packed samples). To inspect or convert captures on your workstation, install
the Python tooling requirements and use the helper script in scripts/:
python3 -m pip install numpy
python3 scripts/am1tool.py info /path/to/sess_2024-05-18_09-55-12.am1
The info subcommand prints the session metadata (start time, configured
gains, engineering scaling, etc.) along with sample counts and timing stats.
python3 scripts/am1tool.py csv /path/to/sess_2024-05-18_09-55-12.am1 --cols full --output sess.csv
Use --cols raw, --cols rawmv, or --cols full (default) to match the CSV
column sets exposed by /export_csv on the device. If you omit --output the
tool streams CSV rows to standard output, which allows piping into other tools
for offline analysis.