esp-rs / book

The Rust on ESP Book
https://esp-rs.github.io/book/
Apache License 2.0
168 stars 53 forks source link

Add a detailed tutorial creating a non-trivial application #11

Open jessebraham opened 2 years ago

jessebraham commented 2 years ago

Walking people through implementing a real-world project using Rust would likely help jumpstart many people's progress. One suggestion was a camera web server, or we could do a Wi-Fi lightbulb project or something similar.

ivmarkov commented 2 years ago

I'm working on something similar that is not on github yet, and which I informally call the "mega-demo".

My idea for the mega-demo is to just be a WiFi Routing/Repeater, as that does not require any additional hardware, so any board would work:

Now, the concrete use case of the demo is not that important, as I want to demo the other details. The stuff that basically transforms a "proof of concept" into an actual, working firmware that can be upgraded and integrated with smart home software:

Once we have this, it should be easy to tailor this project into whatever specific hardware the user wants to support with it. I have the feeling, the hardware-specific stuff would be the minority of the code, the rest could just be re-used from this project. :)

But as you can imagine, lots of work, and lots of moving parts. Can easily take a few months.

Help greatly appreciated!

thomas725 commented 1 year ago

Hey there!

I'd be an eager consumer of such a tutorial. Especially I'd like to learn how to use Rust with OTA on my ESP32, preferably in a way that I can build+deploy using a button in VS-Code.

ivmarkov commented 1 year ago

Hey there!

I'd be an eager consumer of such a tutorial. Especially I'd like to learn how to use Rust with OTA on my ESP32, preferably in a way that I can build+deploy using a button in VS-Code.

One year later, we still don't have a detailed tutorial for a non-trivial application, but at least we do have the foundations of the application that should be the basis of the tutorial.

Given how much the design of the above application has deviated from the original "mega demo" plan from above, I think it needs its own book though - which can be referred from here of course.

thomas725 commented 1 year ago

Hey there, I thought I'd share my success with esp-rs + OTA here, maybe somebody else stumbling over this ticket might appreciate the relatively simple sample (~340 loc at the moment) including documentation how to use the OTA implementation: https://gitlab.com/thomas351/esp32-rust-playground