←back to thread

205 points michidk | 2 comments | | HN request time: 0.44s | source
Show context
RandomThoughts3 ◴[] No.41835212[source]
The article is really light on actual details.

Basically, this is a company who uses ESP32 to read serial data from batteries using UART and retransmits it in json over MQTT. They apparently had buggy C code to do that (for unspecified reasons) and successfully rewrote that in Rust.

Conclusion, you can write ESP32 code in Rust. No information on what that actually entails sadly.

replies(4): >>41835476 #>>41835541 #>>41835850 #>>41836023 #
1. whazor ◴[] No.41835850[source]
Some more information on ESP32 on Rust. Espressif (the organisation behind ESP32) spent effort to properly support Rust on their chips, see their documentation: https://docs.esp-rs.org/book/

Another nice resource for Rust embedded is https://embassy.dev/ which also supports STM32, Nordic chips, and RP2040.

IMO, the coolest feature about Rust embedded is that Async Rust works! This makes building a HTTP server for your embedded chip easy.

replies(1): >>41838353 #
2. qazxcvbnmlp ◴[] No.41838353[source]
Most embedded code is pretty bad at async - that could be a game changer.