First commit
Remote-control the RGB LED on an esp32c3 devkit using the telegram app.
ESP32C3 code is written in Rust using the embassy embedded async framework. Embassy makes it easy to structure your application as independent tasks.
For general toolchain setup instructions, please refer embassy demo.
How to run the code: clone this repo, edit these lines:
const SSID: &str = "SSID";
const PASSWORD: &str = "PASSWORD";
const REMOTE_ENDPOINT: (Ipv4Address, u16) = (Ipv4Address::new(1, 2, 3, 4), 5678);
and execute the provided "run" script.
REMOTE_ENDPOINT is the address of the telegram bot application (running on say a Raspberry Pi on the same network).
Here is the link to the telegram bot code.