Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust HTTPS Client for the ESP32-C3 chip

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 --release

Note: If you try running it without the --release flag you will get errors related to no free memory for allocation in the TLS connect.

Logic

  1. Initializes the controller and enables the ESP wi-fi client.
  2. Initializes Embassy tasks and executor.
  3. Connects to your access point using the specified your_wifi_ssid and your_wifi_password
  4. Gets an IP address from the DHCP server in your network.
  5. 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.
  6. Tries to GET www.google.com/notfound page.
  7. Receives result from the server and prints it to the console.

This project is based on:

License

Licensed under either of:

at your option.

Author

Slava Dobromyslov slava@dobromyslov.com

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages