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.
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".
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 .