Tested on the Rust ESP Board.
On run, it automatically builds the firmware, flashes the connected board and monitors its console.
You may customize this behaviour in the .cargo/config.toml file.
Run in Windows PowerShell:
$env:SSID="your_wifi_ssid"; $env:PASSWORD="your_wifi_password"; cargo run --release; $env:SSID=$null; $env:PASSWORD=$null;Run in Linux:
SSID="your_wifi_ssid" PASSWORD="your_wifi_password" cargo run --releaseNote: If you try running it without the --release flag you will get errors related to no free memory
for allocation in the TLS connect.
- Initializes the controller and enables the ESP wi-fi client.
- Initializes Embassy tasks and executor.
- Connects to your access point using the specified
your_wifi_ssidandyour_wifi_password - Gets an IP address from the DHCP server in your network.
- Connects via HTTPS to the www.google.com website, checks its certificate using the stored PEM file
in
.src/certs/www.google.com.pem, and establishes an encrypted connection. - Tries to GET www.google.com/notfound page.
- Receives result from the server and prints it to the console.
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Slava Dobromyslov slava@dobromyslov.com