Running Iroh on an ESP32
9 hours ago
- #rust
- #embedded-systems
- #iot
- Running iroh on an ESP32 is explored as a cost-effective alternative to using a Raspberry Pi for embedded projects.
- The ESP32, despite its limited resources (4MiB flash, ~500KiB RAM), is compared to early 32-bit computers in terms of capability.
- Setting up a Rust project for ESP32 involves using a template and configuring the toolchain, with challenges like device detection and flashing.
- Binary size and memory constraints are significant hurdles, requiring optimizations like LTO and external SPIRAM usage.
- Crypto provider issues arise due to unsupported platforms, leading to a custom pure-Rust solution for TLS and QUIC support.
- WiFi setup is necessary for network connectivity, with credentials embedded in the binary for simplicity.
- A successful iroh endpoint on ESP32 demonstrates communication with standard iroh clients, showcasing potential for home automation and IoT.
- Future steps include hardware integration for sensors/actuators and improving iroh's compatibility with embedded systems.