Hurrah... my #Rust based #PicoW SCD40 CO2 sensor thing is working. Had a few gnarly problems, have some definite concurrency issues going on I think, I need to dig deeper into how the whole async/mutex situation in Rust/embassy works. But we were also self-DoS-ing as the sample HTTP code I started with had keepalives on, which just doesn't make any sense for this use-case. The moment I added the JS stuff it broke, turn off the keepalives: no problems!
So now I have a page served by the Pico which has the CO2 PPM, temp, and humidity being updated every couple of seconds.
This forms a base for adding further/different sensors and expanding on that, learning as I go, as always. Want to get the built in RTC working, and timestamp results, and store in flash with a bulk-get capability.
And on the topic of flash, need to work out persistent configuration too.
Fairly happy with that at day ~5 of using Rust for the first time.