nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpqavr9ekvdyujgyjv04uarflegq08v7thc7xje5emymn690epzrxjsfqssav (nprofile…ssav) 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.)