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.
Sadly, I cannot provide binaries as they include WI-FI SSID and Passwords. After installing espup follow these steps:
- 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
- Clone this repository
git clone https://github.com/Nereuxofficial/nostd-wifi-lamp
cd nostd-wifi-lamp
- 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.)
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