Home

Awesome

Nostd-wifi-lamp

License issues - Nereuxofficial Commits/m

image image

A Wi-Fi controllable lamp written in Rust for the ESP32 using esp-hal. This was created for a blog post you can read here.

Usage

Sadly, I cannot provide binaries as they include WI-FI SSID and Passwords. After installing espup follow these steps:

  1. Install the cargo-espflash tool
# We need the newest espflash as of now
cargo install espflash --git https://github.com/esp-rs/cargo-espflash.git
  1. Clone this repository
git clone https://github.com/Nereuxofficial/nostd-wifi-lamp
cd nostd-wifi-lamp
  1. Flash it to your ESP32
export SSID="your SSID" PASSWORD="your password"
cargo run --release

And then enjoy your wifi light! You can now connect to the printed IP Adress in your browser or alternatively send this curl request:

curl -v -d '{"r":0,"g":0,"b":200}' http://<ESP_IP_ADDRESS>

(If the last step doesn't work try pressing the Boot Button during the command, which always worked for me.)

Credits

bjoernQ for fixing an error where the stack overflowed into the heap and i had no idea why it was crashing. esp-rs for the Rust tooling around ESP32s