Skip to content

deadmaus10/esp32-http-server

 
 

Repository files navigation

ESP32 HTTP Server Example

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.

Building

This is a PlatformIO project. To build it, install PlatformIO, and then run the following command:

pio run

Simulating

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.

Measurement exports

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

Inspect a capture

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.

Convert to CSV

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.

About

ESP32 HTTP Server Example for Wokwi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 81.5%
  • HTML 6.5%
  • Python 6.3%
  • C 5.7%