logoalt Hacker News

shermantanktoptoday at 2:19 AM2 repliesview on HN

This is interesting as an example of just how complicated and elaborate a toolchain you can use to build something dead simple.

There’s a lot that comes for free by adding all these libraries and crates and steps. But from what I can tell it comes down to:

let _ = if fan_on { fan.set_high() } else { fan.set_low() };


Replies

kloojtoday at 2:41 AM

iroh is a peer to peer networking technology so the project example of controlling a fan isn't so much about the fan but rather that it's controllable from anywhere through an esp32 microcontroller that can maintain a resilient connection endpoint even through power cycles and so on. I think iroh was posted about on HN a few weeks ago and I had a similar reaction of like...what in the world is this blog post even saying haha. But I found their docs page and found it pretty fascinating learning! https://docs.iroh.computer/what-is-iroh

show 2 replies
miki123211today at 10:31 AM

The hard part isn't controlling the fan, it's controlling the fan from anywhere, without a central server in the way.

Sure, you could probably make this much smaller if you invented a specialized p2p fan control protocol, but that's a lot of work.

show 1 reply