by shermantanktop · 4mo ago · 0 comments
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() };
I really hope more people will play around with iroh and build stuff especially because in the last year some things have been renamed in the API to be more clear and other stuff has been simplified e.g. see this blog post https://www.iroh.computer/blog/iroh-0-94-0-the-endpoint-take...
It's a demo of how easy it is to make even an ESP32 device available globally with iroh.
It’s not simple enough to debug a connection failure easily, but it’s not magical enough to guarantee connectivity. Straight tcp with dns can be hard to debug; and no magical networking stack can really guarantee connectivity. I guess iroh’s strength is connectivity but I don’t know what happens if you can’t find a path.
The third dimension is privacy and anonymity, and I can’t tell if the story there is stronger than other p2p+relay protocols.
So it’s in the middle but at a different point in the space.
Sure, you could probably make this much smaller if you invented a specialized p2p fan control protocol, but that's a lot of work.
For specific applications like transfer fans for a server room with a small amount of heat to react, you can buy an all-in-one thermostatically controlled fan: https://acinfinity.com/room-to-room-fan-8-with-temperature-c...