Skip to content

wokwi/platform-io-esp32-http-client

Repository files navigation

ESP32 HTTP Client

A simple HTTP Client example that connects to http://example.org and prints the response to the serial port.

Includes an automated test scenario that runs the simulation and validates the serial output.

Use Wokwi to simulate this project, and the Wokwi CLI to run the automated test.

Building

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

pio run

Simulate the project

To simulate this project, install Wokwi for VS Code. Open the project directory in Visual Studio Code, press F1 and select "Wokwi: Start Simulator".

Run in wokwi-cli

To run the automated test scenario, install the Wokwi CLI, and create a Wokwi CLI token. Then run the following commands:

Linux/Mac:

export WOKWI_CLI_TOKEN="your token goes here"
wokwi-cli --scenario http-client.test.yaml .

Windows:

$env:WOKWI_CLI_TOKEN="your token goes here"
wokwi-cli --scenario http-client.test.yaml .

About

ESP32 HTTP Client with Wokwi CI example

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages