Join Nostr
2025-03-19 17:22:38 UTC
in reply to

Yvan 🔜(ish) #40c3 on Nostr: nprofile1q…qssav yeah, I was surprised there weren't examples for this use case - ...

yeah, I was surprised there weren't examples for this use case - and I expect there must be code out there that does this sort of thing already, but I couldn't find it.

With the caveat that I am a complete amateur Rust developer (with a whole ~6 days experience) I have documented my efforts here and previous posts, but really this is more my own rambling notes: https://yvan.seth.id.au/rusty-pico-w-co2-ppm-sensor.html

And the code as it stands is on GitHub: https://github.com/YvanSeth/scd40-rusty-pi

There is at least one bug, which causes it to stop servicing HTTP connections - and possibly still some sort of mutex/locking race which locks up the whole thing (I need to get a proper debugging connection sorted out.)