Important instructions (written based on my environment, needs to be updated upon trying out it other environments too)
ESP32-specific toolchain manager (espup):
cargo install espup
espup install
Source the export file generated by this tool in every new terminal session, or add it to your shell config:*
. $HOME/export-esp.sh
cargo install ldproxy cargo-generate espflash
yay -S libxml2 ncurses5-compat-libs
I encountered an error that libxml2 so was not the version 2. So use this hack(need to improve it) to symlink it to the current version(16 in my case) seems to work fine for me.
sudo ln -sf /usr/lib/libxml2.so.16 /usr/lib/libxml2.so.2
- Update the permissions. (I know it is temporary and has to be done each time.)
sudo chmod 666 /dev/ttyACM0
- Edit
src/main.rs: Update the variables with sensitive info regarding wifi and telegram bot credentials
Running it flashes it to the esp32 s3 chip too. It will prompt you to choose device.
cargo run
MIT / Apache-2.0