~pcein/rust-embassy-remote-led

Rust embassy code running on an esp32c3 and controlling an RGB LED based on network messages received from a telegram bot
91e734c7 — Pramode C.E a month ago
First commit

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~pcein/rust-embassy-remote-led
read/write
git@git.sr.ht:~pcein/rust-embassy-remote-led

You can also use your local clone with git send-email.

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.